Why doesen't any classes work? i think.

Discussion in 'Plugin Development' started by ShadowWizardMC, Aug 25, 2013.

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

    ShadowWizardMC

    Ok so i am making a plugin and i have been using a tutorial but what i want to know is why all the classes i make never work. I made player detection class but when i export it it does nothing what am i doing work this is my class: http://pastebin.com/augT0GLT and this is my main class :
    http://pastebin.com/j7Vz0q5k can some plz help me. :oops:
     
  2. Offline

    Pizza371

    ShadowWizardMC you didnt register the class in Main
    Us e something like:
    In listener class:
    public Main plugin;
    public Listener(Main plugin){
    this.plugin = plugin;
    Bukkit.getPluginManager().registerEvents(this, plugin);
    }
    then in Main onEnable()
    new Listener(this);
    .. I think that should work O;
     
Thread Status:
Not open for further replies.

Share This Page