Solved Some Plugin help

Discussion in 'Plugin Development' started by Ty_da_Simple_man, Nov 14, 2014.

Thread Status:
Not open for further replies.
  1. I'm creating a plugin sense i want to finally figure out how to listeners.
    Code:java
    1. @EventHandler
    2. public void normalLogin(PlayerLoginEvent Join) {
    3.  
    4. {

    When i do Join. In eclipse i want to set the players game mode to creative, But There no option to do that :/ i was wondering a way to do that Just for that player.
     
  2. Offline

    ColonelHedgehog

    Use the Player.setGameMode(GameMode.CREATIVE) method.
     
  3. ColonelHedgehog
    If i do use that, would it set it JUST for the player who joined?
     
  4. Offline

    Epicballzy

    Yes
     
  5. Offline

    Gnat008

    Ty_da_Simple_man
    Post your code please?
    This error means that you are trying to call a non-static method from a static context, which you cannot do.
     
  6. I fixed it I was doing Player not player "P" "p"
     
Thread Status:
Not open for further replies.

Share This Page