From 87bcda2da6516a833e48144b879837997bb15777 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 30 Jul 2017 09:05:58 +1000 Subject: [PATCH] Fix /ref. (Thanks VenkSociety) --- MCGalaxy/Games/ZombieSurvival/ZSPlugin.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MCGalaxy/Games/ZombieSurvival/ZSPlugin.cs b/MCGalaxy/Games/ZombieSurvival/ZSPlugin.cs index 46566242b..4aa004996 100644 --- a/MCGalaxy/Games/ZombieSurvival/ZSPlugin.cs +++ b/MCGalaxy/Games/ZombieSurvival/ZSPlugin.cs @@ -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));