-
Notifications
You must be signed in to change notification settings - Fork 23
Commands
- Add a command to be executed upon clicking the selected NPC.
/npc cmdadd [-c console] [-o Op] [-r random] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] <command...>
- Gets various information about all the NPC commands
If you include the command 'id' it will only show information for that command.
You get the 'id' from using the 'cmdinfo' command
/npc cmdinfo [id]
- Removes a specific command You get the 'id' from using the 'cmdinfo' command
/npc cmdremove <id>
- Set various variables for the command
/npc cmdset <id> [-c console] [-o Op] [-r random] [-m cdMsg] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] [command | cdMsg...]
- Remove all commands from the selected NPC.
/npc cmdreset
The -c flag runs the command through the console. (This will toggle between true/false)
The -o flag runs the command as an op. (This will toggle between true/false)
The -r flag picks a random command and executes that one command only.
The -m flag is when you have a cooldown amount specified. When the player is in a cooldown and attempt to use the NPC, it will send them this message. (Usage: /npc cmdset -m [cdMsg...]) Note: When using other flags the cdMsg as to be the last things within the command.
The -i flag when true, noPerm message doesn't send
The -l flag when true, noMoney message doesn't send
The --v flag charges the player the specified amount, when running the command. (Numeric with decimal)
The --p flag requires the player to have the specified permission.
The --d flag is the amount of ticks that the command will be delayed by. (Integer input)
The --cd flag is a cooldown for the command in ticks. (20 ticks in a second)
The --t flag sets the clickType ('left', 'right', or 'both')
You get the 'id' from using the 'cmdinfo' command