PC-612
Fixes an issue that removing Co-host from someone would remove their creative mode in Master Builders.
This commit is contained in:
parent
c16f9ec9ec
commit
42c578be9d
@ -677,11 +677,12 @@ public class GameHostManager implements Listener
|
|||||||
player.closeInventory();
|
player.closeInventory();
|
||||||
}
|
}
|
||||||
UtilPlayer.message(player, F.main("Server", "Your Co-Host privileges were removed."));
|
UtilPlayer.message(player, F.main("Server", "Your Co-Host privileges were removed."));
|
||||||
|
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
|
||||||
|
|
||||||
if (isEventServer())
|
if (isEventServer())
|
||||||
|
{
|
||||||
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
worldeditPermissionSet(player, false);
|
worldeditPermissionSet(player, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user