DireDragon
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?!)
Oh it also doesn't delete the portal, they are stacking up now :D
It works fine except it always spawns in an hour. I shut the server down and edit the file even and its always back to an hour. If i set it in game to 6 hours it says 5 but then i check again and yup, 1 hour. Is this going to be updated at all? Its a great plugin except for the time keeping.
@ChillerKraft
I'll look into it
@CloudeLecaw
It's supposed to delete the death portal... I'll test out some more in spigot.
yes but, i tested without anything but spigot and it was still the same
@ChillerKraft
do you have any other plugins or mods installed?
@CloudeLecaw
I'll get to work on that
:O i NEEEEEED THIS
TESTING
update: im finding the dragon to be a huge pain in the ass recently. it dissapears when nearby and i need to turn off movement and speed limits or else i get froze in positions when it hits me until it passes.
it even seems to dissapear for a little while everrytihimmme i look at it DX
@EarlyReflex
Thanks for the suggestion =) that would work
@Bydon
Perhaps you could make it check in what biome the player is, instead of which world. If the biome is "Sky" then all is good! It would work on multi-world servers where there could be more than one end world.
@CloudeLecaw
It seems to work with spigot 1.8.3 for me, perhaps a plugin is changing the end's name? The next version will have a config option to specify a world name if it's different from the default world_the_end and DIM1 to help with the issue.
@CloudeLecaw
I'll download spigot and find out the name that it uses, thanks for the report. Expect it later today, as I'm not home right now.
@Bydon
Cool!
Here's one advice tho: make sure you clear all leftover crystals before spawning new ones, or else they would stack and cause very nasty fps issues. Can't wait to try it out!
Thanks for the suggestions, I'll get to adding them =)
Awesome!
I've been looking for something like this for a while. This is the closest to what I need, but unfortunately, I also need to have the ender crystals respawned. That could be easy, by just adding the coords to them in the config. Add that and you're my saviour! :D