iXanadu13 / EnderDragon

An easy plugin that can customize your EnderDragon.
https://www.spigotmc.org/resources/101583/
GNU General Public License v3.0
10 stars 3 forks source link

PlaecHolder for Auto_Respawn Task #25

Open counteracts opened 2 weeks ago

counteracts commented 2 weeks ago

Is it possible for you to add a placeholder for auto_respawn task, if there is one already sorry & I overlooked it.

e.g

auto_respawn:
  task1:
    enable: true
    world_name: world_the_end
    respawn_time: 'hour:6'

%ed_task1_respawntime% or something a long those lines as I'm trying to add a countdown for players so they're aware when the next dragon spawns.

iXanadu13 commented 2 weeks ago

For some history problems, auto_respawn module doesn't have time display function. If you want a placeholder to show the remain time, command 'respawn_cd' will be a good choice. https://ixanadu13.github.io/EnderDragon-Wiki/English%20version/Command/DragonRespawn#respawn_cd https://ixanadu13.github.io/EnderDragon-Wiki/English%20version/Plugin%20Compatibility/PlaceholderAPI#countdown-remain-seconds

But it also has some limitations, such as only-one-per-world, trigger-only-once.

All in all, many aspects of this plugin require a thorough refactoring, but I don't have time to complete it. This is very regrettable.