Help with first plugin

Discussion in 'Resources' started by 0ffn00b, May 3, 2011.

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


    Hi im working on my first plugin a simple thing that just tells your location and i have all the code worked out but im getting an error when registering the PLAYER_COMMAND event.

    PluginManager pm = getServer().getPluginManager();
    pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this);
    pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);
    pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Priority.Normal, this);
    pm.registerEvent(Event.Type.PLAYER_COMMAND, playerListener, Priority.Normal, this);

    That last line is giving me an error in eclipse : Event.Type.PLAYER_COMMAND cannot be resolved
    Im not sure why its doing this but its probelly something small, any help is appreciated


    Sry realized wrong section i reposted in development section but not sure how to delete this

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 14, 2016
Thread Status:
Not open for further replies.

Share This Page