Cooldown not working on EventHandler

Discussion in 'Plugin Development' started by looparound, Sep 10, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    looparound

    Cooldown isnt working on My event handler for a kit. http://pastebin.com/jGP7SAqF If any1 knows the issue I would GREATLY Appreciate it!! :D
     
  2. Offline

    Iroh

    Moved to plugin development.
     
  3. Offline

    looparound

    Bump. Sry i need this answered ASAP
     
  4. Offline

    WauloK

    Better to store the player name instead of the player object in Kits.StalkerKit.
    Code:java
    1. String playerName = player.getName();
     
  5. Offline

    uyuyuy99

    I glanced over it and couldn't find anything wrong. Would you mind giving us more detail rather than just "it doesn't work"?
     
  6. Offline

    looparound

    ok well it adds them to the cooldown and once trying right clicking the even works and the cooldown takes affect. But it doesnt remove them from the cooldown .
     
  7. Offline

    uyuyuy99

    Why are you casting the listener class to a plugin with (Plugin) this ? Is the class with that listener actually the main class of the plugin? If not, you're probably getting a ClassCastException in your console. If so, make sure you change that part to reference your main Plugin class, and not your listener class.
     
Thread Status:
Not open for further replies.

Share This Page