Pyrbu / ZNPCsPlus

A Spigot plugin for creating interactable fake entities
https://www.spigotmc.org/resources/znpcsplus.109380/
GNU General Public License v3.0
118 stars 29 forks source link

Allow non-registered commands to be executed #95

Closed SladeHazard closed 1 year ago

SladeHazard commented 1 year ago

Whenever I give the npc a command such as /warp created by plugins such as DeluxeMenus, which aren't registered commands the plugin does not work with them

image

Whenever I click the NPC it says unknown command even though the command exists, it's just not registered... this does not happen with the Citizens plugin. and you might say: "why not just register the command?" in some use cases registering the command isn't possible for example if I register the command /plot for my deluxemenu gui it'll completely make my plotsquared plugin disfunctional when executing other commands such as /plot teleport

D3v1s0m commented 1 year ago

Whenever I give the npc a command such as /warp created by plugins such as DeluxeMenus, which aren't registered commands the plugin does not work with them

image

Whenever I click the NPC it says unknown command even though the command exists, it's just not registered... this does not happen with the Citizens plugin. and you might say: "why not just register the command?" in some use cases registering the command isn't possible for example if I register the command /plot for my deluxemenu gui it'll completely make my plotsquared plugin disfunctional when executing other commands such as /plot teleport

you either need to register the command using that plugin or you need to use the chat action type for 1.0.8 or playerchat action type for 2.0.0 snapshots. example: /znpcs action add 1 CHAT /warp pvp for 1.0.8 /npc action add playerchat 1 ANY_CLICK 1 0 /warp pvp for 2.0.0 snapshots

SladeHazard commented 1 year ago

Thank you that solved it!