PlayerEventCommands
PEC
Customized player interaction.
Purpose
PEC (Player Event Commands) uses player interaction events to run configured commands. This can be useful in many cases, including ease of use with moderation based commands.
Function
When a player right clicks another, PEC checks if the block they are holding has a command assigned to it, and if they have permission to use that command. If so, the command will be run based on the name of the player they clicked. This will be explained a bit more in the configuration section.
Configuration
Here's an example configuration:
1 : spawn %player% 3 : ban %player% 69 : kick %player%
Line one, uses the "spawn" command on the clicked player when the clicker is holding a stone block. Line two, uses the "ban" command on the clicked player when the clicker is holding a dirt block. Line three, uses the "kick" command when the clicker is holding a lever.
You MUST have it formatted like:
ID : command
Notice the space between both variables and the ":", if you do not use this the plugin will not work. Data values (such as colored wool) are not yet supported, and use of them may break the plugin.
Permissions
Permissions for PEC are based off the block IDs. An example:
pec.1
Would give a user permission to run commands associated with the block with ID 1, which is stone.
Development
If you have any suggestions, please leave a comment. I will consider ALL (serious) suggestions.
Comments