Mineuniverse
Log in Register
Plugins

PlayerEventCommands

Run custom commands on player interaction.
by _ForgeUser17877472
Download Claim this project
603 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Admin Tools Fun General

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.

PEC-1.0.0
MC CB 1.7.9-R0.1
Release 2014-11-19 Get

More from _ForgeUser17877472

FakeMax
929
NoLink
784
StaffList
654
KillItems
1,906
NearbyDeath
1,083

You Might Also Like

AdBolt Advertising Network
Make money from your Minecraft server by running ads!
9,992
Mineload
Mineload
9,978
BeastTP
BeastTP v1.0 - Teleportation Made Easy! -[Permissions][1317]
9,966
RegionManager
generate regions with just one command!
9,950
TimeKeeper
Keep the Server-Playtime per Day
9,948
SimpleAdmin
simple way to ban/kick unwanted players from your server
9,945