Bukkit onJoin

Discussion in 'Plugin Development' started by albin900, Jan 10, 2014.

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

    albin900

  2. Offline

    NoLiver92

    Firstly please post code here not on a third party site.

    secondly where is your main class ans where have you registered the listener?
     
  3. Offline

    user_90854156

    First thing you must add:
    Code:java
    1. implements Listener

    Second thing you must add:
    Code:java
    1. public void onEnable() {
    2. Bukkit.getServer().getPluginManager().registerEvents(this, this);
    3. }


    Always remember to register your events.
     
  4. Offline

    albin900

    Thanks , i didn't know how to use syntax=java sorry :/
     
Thread Status:
Not open for further replies.

Share This Page