Why is this not triggering..?

Discussion in 'Plugin Development' started by HyrulesLegend, Mar 9, 2014.

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

    HyrulesLegend

    Hey guys!
    I am just starting to get back into coding after a 3-month break, and I'm really rusty, but I asked a few friends and they cannot figure out why this code is not function either! (I added debug lines, none of them are triggering, events are registered.)

    Code:
    Main Class:
    Code:java
    1. public class Main extends JavaPlugin {
    2.  
    3. public void onEnable() {
    4.  
    5. Bukkit.getServer().getPluginManager().registerEvents(new WiiEvent(this), this);
    6.  
    7. }
    8.  
    9. public void onDisable() {
    10.  
    11. }
    12.  
    13. }
     
  2. Offline

    Acer_Mortem

    HyrulesLegend

    Are you sure your Listener class is implementing Listener?

    And if you could, would you be willing to paste all the code from both classes? Thanks :)
     
  3. Offline

    iBecameALoaf

    If we're going to help you, we're going to need your 'WillEvent' class. Instead of using Bukkit.getServer()... try just using this.getServer()
     
Thread Status:
Not open for further replies.

Share This Page