Hi There,
I'm not sure if it's either not possible or I'm missing something, but I cannot figure out how to call commands from other resources.
I'm working on a plugin where commands are read from an API (controlled by the server owner), and then executed on the server.
I can get it to work with commands registered within the same resource, but I don't seem to be able to get it to work with commands from other resources (for example trying to call `shout`)
Just to try and get to the bottom of it, I'm running 'known' commands (as opposed to getting them from the API):
--this doesn't work
iprint(executeCommandHandler( "shout", getElementsByType("player")[1], "StandingSitar33 This is a test"));
--this works - is a command added in my resource
iprint(executeCommandHandler( "tebex:info", getElementsByType("player")[1]));
There is nothing in the documentation that says it has to be a command created with addCommandHandler _in my resource_, but unless I'm missing something that's the only conclusion I can come to...
Any help or suggestions for ways around this would be appreciated!