Development Assistance Deactivate GM 3.

Discussion in 'Plugin Help/Development/Requests' started by RanterMC, Jun 13, 2015.

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

    RanterMC

    player.setGameMode(GameMode.SPECTATOR);

    So if a player types /spectator it will turn him into GM 3.
    And if he types /spectator again, how would I deactivate the GM 3 mode?
    Do I have to add something to the code to deactivate the spectator mode?
     
  2. Offline

    I Al Istannen

    @RanterMC Set the game mode to survivial or creative again.
     
  3. Offline

    RanterMC

    And how do I do it?
    Like what's the code for it?
    Because I'm a beginner with Bukkit Coding..
     
  4. Offline

    I Al Istannen

    @RanterMC You can set the player to Spectator mode. Just replace the "SPECTATOR" with "CREATIVE" or "SURVIVAL". That should be the right names, but probably your IDE can help you out.
     
Thread Status:
Not open for further replies.

Share This Page