Click Rewards is an easy to use plugin that allows you to execute commands whenever players click specific blocks in the world. It is relatively easy to use and configure, and designed to omit bloatware.
In order to register a new clickable (a block that executes a command when clicked), simply look at the block and use the `/clickrewards register <id>` command. The <id> argument is used to identify the block later on, so make sure to give it a descriptive ID. An example of an ID for a clickable that teleports the player to spawn would be teleport_to_spawn.
After registering the block, you will now need to configure it. Upon first installation of the plugin, a `config.yml` file will be created in the plugin's data folder. If the block was registered correctly, you should see a YML node with the block's ID in the config file
Each node will contain 4 useful pieces of information: The location, permission, permission message, and commands.
The location node is used to specify where the block is located in the world. Do not edit this node unless you know what you are doing.
The permission node specifies the permission that players need to have in order to interact with the clickable. If the clickable is a chest, door, etc. and the player does not have the permission assigned to it, they will not be able to interact with it. Set to none to disable permissions for the clickable.
The permission message contains text that will be sent to the player if they attempt to interact with the clickable but do not have the required permission. Set to none to disable a permission message being sent to the player.
The commands node is the most important. This is a list of commands that will be executed when the player interacts with the clickable AND they have the required permission.