-
Notifications
You must be signed in to change notification settings - Fork 1
Introduction
This page will help you to understand the basic structure of the plugin.
Every command that starts with * is executed by the console, and therefore has every permission and can do everything.
Every command in any config or command in CommandUtils can contain placeholders from PlaceholderAPI.
The individual commands of this plugin have specific permission nodes for each one of them. But in the end the console or an admin will execute the commands, so just grant the admins the permission command-utils. This gives access to every feature of CommandUtils.
The root commands are:
/commandUtils/cmdUtils/cu
There is no difference between them. I always use /cu because it is shorter.
Aliases are basically new, user-defined commands. For example, an alias can trigger the /give and /say command. This looks like this in the config:
"giveMeCookies" {
commands = [
"*give %player% minecraft:cookie 3",
"*say %player% is hungry and just got three cookies!"
]
}
These type of commands are altering the execution of commands. For example, the execution is delayed, or only done if a condition is met. A list of these commands:
/cmdUtils execute whenOnline/cmdUtils execute delayed/cmdUtils execute if/cmdUtils execute parsed
Read more about the execute commands
These type of commands are typically used in conjunction with the /cmdUtils execute if command. If the specified condition is met, the command returns a 'success signal'. This signal is a vanilla feedback of the executed command. It is named CommandResult in Sponge and used by vanilla comparators with command blocks.
The great thing about the condition commands is that more can be added by other plugins and they can be still used by the /cmdUtils execute if command.
A list of these commands:
/cmdUtils is before/cmdUtils is after/cmdUtils has money/cmdUtils has payed/cmdUtils has in hand/cmdUtils has given from hand/cmdUtils has permission
Read more about the condition commands
There is the execute-on-server-startup.conf which executes the specified commands when the server boots up: Read more