PlayerEventCommands

Run custom commands on player interaction.

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.

The PlayerEventCommands Team

profile avatar
  • 6
    Projects
  • 5.9K
    Downloads

More from _ForgeUser17877472View all

  • FakeMax project image

    FakeMax

    • 916
    • Bukkit Plugins

    Spoof your max player count.

    • 916
    • November 28, 2014
    • Bukkit Plugins
    • +1
  • KillItems project image

    KillItems

    • 1.8K
    • Bukkit Plugins

    KillItems gives configured items to a player for each kill.

    • 1.8K
    • November 28, 2014
    • Bukkit Plugins
    • +2
  • NearbyDeath project image

    NearbyDeath

    • 1.0K
    • Bukkit Plugins

    Broadcast custom death messages to a defined radius.

    • 1.0K
    • November 28, 2014
    • Bukkit Plugins
  • StaffList project image

    StaffList

    • 646
    • Bukkit Plugins

    StaffList allows you to easily display the IGNs of your staff, as well as their online status.

    • 646
    • November 20, 2014
    • Bukkit Plugins
    • +1
  • FakeMax project image

    FakeMax

    • 916
    • Bukkit Plugins

    Spoof your max player count.

    • 916
    • November 28, 2014
    • Bukkit Plugins
    • +1
  • KillItems project image

    KillItems

    • 1.8K
    • Bukkit Plugins

    KillItems gives configured items to a player for each kill.

    • 1.8K
    • November 28, 2014
    • Bukkit Plugins
    • +2
  • NearbyDeath project image

    NearbyDeath

    • 1.0K
    • Bukkit Plugins

    Broadcast custom death messages to a defined radius.

    • 1.0K
    • November 28, 2014
    • Bukkit Plugins
  • StaffList project image

    StaffList

    • 646
    • Bukkit Plugins

    StaffList allows you to easily display the IGNs of your staff, as well as their online status.

    • 646
    • November 20, 2014
    • Bukkit Plugins
    • +1