Fix /ref. (Thanks VenkSociety)

This commit is contained in:
UnknownShadow200 2017-07-30 09:05:58 +10:00
parent 44ef5f68b3
commit 87bcda2da6

View File

@ -98,12 +98,14 @@ namespace MCGalaxy.Games.ZS {
if (action == PlayerAction.UnReferee) {
Game.PlayerJoinedLevel(p, Game.CurLevel, Game.CurLevel);
Command.all.Find("spawn").Use(p, "");
p.Game.Referee = false;
if (p.HasCpeExt(CpeExt.HackControl))
p.Send(Hacks.MakeHackControl(p));
} else {
HandlePlayerDisconnect(p, null);
Entities.GlobalDespawn(p, false, true);
p.Game.Referee = true;
if (p.HasCpeExt(CpeExt.HackControl))
p.Send(Packet.HackControl(true, true, true, true, true, -1));