Fixes an issue that removing Co-host from someone would remove their
creative mode in Master Builders.
This commit is contained in:
Sam 2016-07-08 17:54:42 +01:00
parent c16f9ec9ec
commit 42c578be9d

View File

@ -677,11 +677,12 @@ public class GameHostManager implements Listener
player.closeInventory();
}
UtilPlayer.message(player, F.main("Server", "Your Co-Host privileges were removed."));
player.setGameMode(GameMode.SURVIVAL);
if (isEventServer())
{
player.setGameMode(GameMode.SURVIVAL);
worldeditPermissionSet(player, false);
}
}
}