A lightweight plugin created for my server (DireNode, thus the Dire before my plugins) to regulate the ender dragon.
When the ender dragon is killed, a message will be broadcasted to the server saying that it was killed, and by who, and a cooldown which can be set in the config (default to one hour) will start to count down. Once the cooldown reaches 0, any player can say /spawndragon and a new one will appear if they are in the end.
The ender dragon does not drop a portal, and instead the dragon egg and drops are inserted into the killer's inventory directly.
Commands
/spawndragon - Spawns the ender dragon if the cooldown is finished.
/dragoncooldown - Tells you the cooldown left on the ender dragon.
/forcedragon [Amount to spawn. Optional] - Forces a ender dragon to appear, even if the cooldown is not finished.
/setdragoncooldown [cooldown]- Set the cooldown of the ender dragon. See the cooldown formatting section.
/resetdragoncooldown - Sets the cooldown of the ender dragon to 0.
Permissions
diredragon.* - Gives access to all the DireDragon commands
diredragon.forcespawn - Gives access to /focedragon
diredragon.spawn - Gives access to /spawndragon. Default to all players.
diredragon.cooldown - Gives access to /dragoncooldown. Default to all players
diredragon.setcooldown - Gives access to /setdragoncooldown
diredragon.resetcooldown - Gives access to /resetdragoncooldown
Config
cooldown: The current cooldown left on the ender dragon. Default to 0, changed by the plugin.
Default Cooldown: The cooldown to be set after the ender dragon is killed. See the formatting section.
Dragon Alive: Whether or not a dragon spawned by this plugin is alive. Present so that users can't spam dragons once the cooldown is down.
Formatting
The config option "Default Cooldown" and the /setdragoncooldown use special formatting. You MUST set them as [number][modifier], where the modifier is either s for second, m for minute, h for hour, d for day, w for week, M for month, and y for year.
To-do List
-Destroy ender portals and give drops to the player who killed it to avoid a massive amount of portals filling up the end [Done]
-Respawn the Ender Crystals when spawning in a new dragon [Working on]
-Config option to customize the messages
-Spawn in Ender Crystals manually anywhere (How cool would that look at spawn?!)