mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes #505
This commit is contained in:
parent
845aab5937
commit
1f2cf4b9cc
@ -201,12 +201,16 @@ public class BukkitPlayer extends PlotPlayer {
|
|||||||
switch (gamemode) {
|
switch (gamemode) {
|
||||||
case ADVENTURE:
|
case ADVENTURE:
|
||||||
player.setGameMode(GameMode.ADVENTURE);
|
player.setGameMode(GameMode.ADVENTURE);
|
||||||
|
return;
|
||||||
case CREATIVE:
|
case CREATIVE:
|
||||||
player.setGameMode(GameMode.CREATIVE);
|
player.setGameMode(GameMode.CREATIVE);
|
||||||
|
return;
|
||||||
case SPECTATOR:
|
case SPECTATOR:
|
||||||
player.setGameMode(GameMode.SPECTATOR);
|
player.setGameMode(GameMode.SPECTATOR);
|
||||||
|
return;
|
||||||
case SURVIVAL:
|
case SURVIVAL:
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user