GameMode

Discussion in 'Plugin Development' started by Jogy34, Sep 22, 2011.

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

    Jogy34

    I have a few questions about the bukkit GameMode Methods

    1. What exactly does getGameMode() return. Not just it returns the players current GameMode(no duh:p) but like a string or an int or something like that and what is it.
    2. If I wanted to change the players GameMode using player.setGameMode(???) what would I I put where the ??? is?
    Never mind I figured it out
     
  2. Offline

    darknesschaos

    Its usually a good idea to post your answer to the question, to help others in the future. Thanks!
     
  3. Offline

    Jogy34

    Ok, here it is
    1. getGameMode() return either GameMode.CREATIVE or GameMode.SURVIVAL
    2. to set the GameMode it would be player.setGameMode(GameMode.CREATIVE) or player.setGameMode(GameMode.SURVIVAL)
     
Thread Status:
Not open for further replies.

Share This Page