DRE2N / CommandsXL

Simple command link plugin.
https://www.spigotmc.org/resources/commandsxl.12336/
GNU General Public License v3.0
2 stars 3 forks source link

Completely confused #2

Closed Gelox1209 closed 6 years ago

Gelox1209 commented 6 years ago

commands: version: [world] help: [] deop %name%: [] permission: 'my.awesome.permission.node'

So in the above example, I'm trying to make sense of all of this, so in the brackets I can only put in worlds to restrict where you can use the commands and the permission node is for all the commands that is enlisted under "commands:"? And the commands has to be already in the server in order for me to throw it in the configs?

For example:

mi Wand Magicwand1:[] Cannot be givewand:[mi Wand Magicwand1]

? I'm so confused right now.

Side note: I'm using this in order for me to use it along with the dungeonsxl plugin.

Sataniel98 commented 6 years ago

Don't really get what you don't understand. CommandsXL basically links all these commands together to one. The permission node grants access to the linked command and the world lists are irrelevant for DungeonsXL. You could use them to exclude some of the commands from being executed when the linked command is performed in a world that isn't whitelisted. I have no idea what your example is supposed to show.

Gelox1209 commented 6 years ago

So in the example you provided: commands: version: [world] help: [] deop %name%: [] permission: 'my.awesome.permission.node'

It means that when you do /commands it does all the command listed below?

Sataniel98 commented 6 years ago

The command to enter would be "/commandsxl,cxl [console|op|default] [file name of the linked command without .yml] [delay in seconds]" and not "/commands", but yes. Except the command "/version" if the command sender is not in the world "world". As you might have noticed, these are exactly the arguments you'd pass to the command sign in DXL as well (console/op/default, linked command script name, delay...)

Gelox1209 commented 6 years ago

Ok ok I got it, thanks~!