Closed ReDuzed closed 4 years ago
Moving the Commands.ChatCommands.Add(etc.)
block to the override void Initialize()
method did not succeed, nor putting a reference to the block in a run-once function when using /reload.
The rest of the plugin functions without hitches aside from whatever is locked behind command usage.
Manually calling
InitCommands()
Found among the code in Command.cs after adding the plugin's custom commands worked for my own commands :
but duplicated all of the tShock command /help messages along with it.
What order is your plugin running at?
My ignorance precedes me. Order?
Plugins can be assigned a load order - I thought maybe your plugin was loading before TShock, but looking at the first message again shows it's not
Hi, I asked in Discord and this was the response. Do you have an extra tshockapi.dll floating around that may be causing issues?
Yes, this must be definitely what is going on. There was an excess tshockapi.dll in the root directory of the server instance.
TShock version: 4.4.0.0
Reproduction steps (if applicable)?
As exemplified in the LavaSucks tutorial, I have placed the correct subject snippet in the GameInitialize hook. When logging into the server as a SuperAdmin, the commands don't appear in /help 1-4 and in this case don't appear at all.
The commands in question were tested yesterday using TShock 4.3.x, and were functional.
The basic example of what I am directly referring to:
Any stack traces or error messages (if known)?
None that I could find. When trying a command, it simply returns the, as paraphrased: command does not exist, check /help for command available.
Any screenshots?
Plugin that is loaded: This command doesn't function:
What plugins and what versions of those plugins are you running?
This is my in-house build of the plugin: PlayerShops. There is a GitHub page of the source if it would be necessary to provide it.