Charge your players levels to activate a redstone current!
Concept Origin
Perhaps you're designing a dungeon-type map where you want your players to be charged every time they go through a specific door? Maybe even you have a city which you wish would have some sort of level tax around the entrances. Whatever the case is, XPSign is the plugin for you!
Features
XPSign is a lightweight plugin which charges players an arbitrary amount of levels (gained from experience orbs) to activate a temporary redstone signal. This is achieved by having an actual sign placed on the side of the block, with a certain configuration template that distinguishes it from other ordinary signs. Once a player right clicks the sign, given that he both has permission to use an XPSign and has the required levels as indicated ON the sign, that amount of levels is taken from the player. The block on which the sign is mounted will then turn into a Block of Redstone (which emits constant power) for 1.5 seconds, which happens to be synonymous with the duration of a button-press from a wooden button. After the time limit has been reached, the block which was originally behind the sign will be restored to its previous state.
You can choose what to do with the redstone current. Probably the most practical use would be to place the sign right next to an iron door for the sake of charging levels for that door. If you're looking to create a permanent signal, I suggest wiring the block behind the sign up to an RS NOR Latch which will keep the value of the changed redstone state even if it changes back to an off position. Other than that, it's important to note that this plugin will not stop a player from simply destroying the sign and/or block behind it. I suggest a protection plugin like WorldGuard where you can make specific regions tailored to your needs. This hasn't been tested, but if you do use WorldGuard regions protection, make sure to enable the 'use' flag in the region of the XPSign.
Video
Y0urShad0vv did a video demonstration of this mod!
Commands
Currently there's no need for commands so there are none!
Permissions
xpsign.create - Allows a player to create an XPSign.
xpsign.use - Allows a player to use an XPSign.
Configuration
XPSigns are easy to make!
- Make sure you have the xpsign.create permission! Also, note that XPSigns can only be placed on walls.
- The first line must be "XPSign". The plugin will correct any capitalization mismatches.
- The second line must only consist of an integer greater than 0. This will be the amount of levels to charge the player.
- The third and fourth lines are reserved for whatever you want to put on them.
- If the correct configuration template has been met, the first line will turn to green and then the XPSign will be fully functional!

