From 1f2cf4b9cc8487798fdad70e1b06960005e7497b Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 7 Aug 2015 09:30:08 +1000 Subject: [PATCH] Fixes #505 --- src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java b/src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java index d1b190476..b805a2c21 100644 --- a/src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java +++ b/src/main/java/com/plotsquared/bukkit/object/BukkitPlayer.java @@ -201,12 +201,16 @@ public class BukkitPlayer extends PlotPlayer { switch (gamemode) { case ADVENTURE: player.setGameMode(GameMode.ADVENTURE); + return; case CREATIVE: player.setGameMode(GameMode.CREATIVE); + return; case SPECTATOR: player.setGameMode(GameMode.SPECTATOR); + return; case SURVIVAL: player.setGameMode(GameMode.SURVIVAL); + return; } }