API

DeathCountdown Banner

MainCommands & Perms Configuration Votifier Donations Administration Signs TradingAPI

API

DeathCountdown comes with support for developers to hook their plugin into DeathCountdown to use some events which are called during the plugin.

How to use the DeathCountdown API

  • Add DeathCountdown to your external Jars (The same way you added bukkit to your build path) Build Path
  • Add DeathCountdown as a dependancy to your plugin.yml
  • depend: [DeathCountdown]
    
  • Create an Event and use either the TimeOutEvent or TimeChangeEvent
  • For example, using the TimeChangeEvent to send the player a message saying how much time they have:
  • @EventHandler
    public void onTimeChange(TimeChangeEvent event) {
        event.getPlayer().sendMessage(String.valueOf(event.newTime()));
        return;
    }
    

Comments

Posts Quoted:
Reply
Clear All Quotes