Commands not working with ValheimSolved

Hi Wulf, sorry to bother you with such a hassle ...
But I can't get the command to work ...
We just have to place the command in the chat with a "!" before ? As indicated in your note:
/ s! position NameOfPlayer

If so, it doesn't seem to work.
Thank you in advance.

The example on the docs is how it works, which does work as I implemented and tested it.

/s !position Wulf​

The ! can be / as well, both are also configurable under the uMod configuration.

Ah, I must have missed something, I'm going to take a closer look.
Is there a page that you can advise me to find the most helpful info to make plugins? Hooks, examples etc?
Thank you !!!

We don't have a lot of game-specific docs for uMod-enabled games yet, but you can view the guides at https://umod.org/guides.

Also, if the commands aren't working for you, a change in uMod core may have broken them. Tested again today, and they seem to be having an issue.

It does not seem to work I will work around the problem by using the OnPlayerChat hook to advance my developments.
Thanks and good luck !!!
Great job as usual!

Pretty sure the issue isn't with the plugin, it's with the position handling in uMod. Working on finding a fix.

For some reason, the IPlayer.Position is null.

ok, good bug hunting ^^

Merged post

[uMod] 4:56 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'GLAdmin v0.0.1' (NullReferenceException: Object reference not set to an instance of an object)
at uMod.Game.Valheim.ValheimPlayer.Position () [0x00000] in <9f20118ba3af4568a0a5fbb5fe1c17de>:0
at uMod.Plugins.GLAdmin.OnPlayerChat (uMod.Common.IPlayer player, System.String message) [0x00011] in <59aa1c4af50642e88679765f91e2930e>:0
at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object,object[])
at uMod.Plugins.HookMethod._Invoke (uMod.Common.IContext target, System.Object[] arguments) [0x0007f] in <6768bb641a264fc3a5d9c1734956b0a2>:0
at uMod.Plugins.HookMethod.Invoke (uMod.Common.IContext target, System.Object[] arguments) [0x000f1] in <6768bb641a264fc3a5d9c1734956b0a2>:0
at uMod.Plugins.HookDispatcher.Dispatch (uMod.Plugins.HookName hookName, System.Object[] args, uMod.Plugins.HookEvent e) [0x001b1] in <6768bb641a264fc3a5d9c1734956b0a2>:0
at uMod.Plugins.Plugin.CallHook (uMod.Plugins.HookName hookName, System.Object[] args, uMod.Plugins.HookEvent e) [0x00060] in <6768bb641a264fc3a5d9c1734956b0a2>:0

Thanks for the report, this has been fixed in the latest update for uMod Valheim.

Thanks

Locked automatically