Proximity Detector
Description
Proximity detector is a mechanics plugin for redstone circuits. When a proximity detector is created, it has a radius value attached to it. If any players enter that radius, the detector is activated and any redstone surrounding the detector is powered. When all players have left the radius, it is deactivated and the redstone is no longer powered.
Creation
Any player with the proper permissions will be able to create proximity detector. To create a proximity detector, the player must place a sign with the top line reading [proximity] and the second line with the radius of the detector.
Example,
[proximity]
5
This would create a proximity detector with a radius of 5.
Destruction
To destroy a proximity detector simply break it and a message will confirm it's destruction.
Permissions
'proximity.create' - Required to create a ProximityDetector
Config
LagRestricter: The processing speed of the plugin. A higher value means more responsive proximities and more processing power used by the plugin.
MaxProximity: The max range allowed on Proximity Detectors. A value of 0 allows infinite range.
EnforceOnExistingSigns: If true, any existing signs over the MaxProximity value will be lowered to match it.
database: The database type, flatfile or MySQL. If you plan on giving this plugin to all players and are expecting lots or sensors I would recommend MySQL, otherwise flatfile works fine.
mysql etc: Your MySQL settings. Only needed if using MySQL.
Optional Dependencies
MySQL
MySQL is an optional database for ProximityDetector. Upon first run a config file will be generated, place your MySQL information there.