This is a very simple plugin that gives a notification every t.538273ime a player destroys a block that is predefined in the configuration file. This makes the work easier in the fight against players who use x-ray. The usage can be much larger than just looking for players with x-ray. There is only the imagination that sets the limits.

Features
  • You can make the text clickable where you define which command should apply.
  • Predefine blocks you want notification on.
  • Configurable notification displayed in chat.

Commands


/blockalert notification - Turn block notifications on and off.
/blockalert reload - Reloads the configuration file.
/blockalert version - Shows you the version number.
/blockalert - Gives you an overview of subcommands.

Permissions

blockalert.bypass - Do not receive notifications from these.
blockalert.alert - Receive block notifications.
blockalert.reload - Allows you to reload the configuration file.
blockalert.use - Allows you to use the main command.

Config

# Define the notification that appears in chat
notification: '&7[&3Block&cAlert&7] &4%player% breaks a &b%block%'

# Define command to apply when you click on the notification
command: '/tp %location%'

# Specify the maximum block height for notifications.
block-height: 63

# Define blocks to listen to.
blocks:
- diamond_ore
- emerald_ore
- spawner

# Feel free to use the placeholders %player%, %location% and %block% within this config file.