You should be able to use all hacks when in /ref mode.

This commit is contained in:
UnknownShadow200 2016-08-20 23:52:54 +10:00
parent 4f2c197f0d
commit ca7b2c076f

View File

@ -36,11 +36,17 @@ namespace MCGalaxy.Commands {
p.Game.Referee = !p.Game.Referee; p.Game.Referee = !p.Game.Referee;
if (p.level == Server.zombie.CurLevel) if (p.level == Server.zombie.CurLevel)
Server.zombie.PlayerJoinedLevel(p, Server.zombie.CurLevel, Server.zombie.CurLevel); Server.zombie.PlayerJoinedLevel(p, Server.zombie.CurLevel, Server.zombie.CurLevel);
if (p.HasCpeExt(CpeExt.HackControl))
p.Send(Hacks.MakeHackControl(p));
} else { } else {
Player.SendChatFrom(p, p.ColoredName + " %Sis now a referee", false); Player.SendChatFrom(p, p.ColoredName + " %Sis now a referee", false);
Server.zombie.PlayerLeftServer(p); Server.zombie.PlayerLeftServer(p);
Entities.GlobalDespawn(p, false); Entities.GlobalDespawn(p, false);
p.Game.Referee = !p.Game.Referee; p.Game.Referee = !p.Game.Referee;
if (p.HasCpeExt(CpeExt.HackControl))
p.Send(Packet.MakeHackControl(true, true, true, true, true, -1));
} }
Entities.GlobalSpawn(p, true, ""); Entities.GlobalSpawn(p, true, "");
p.SetPrefix(); p.SetPrefix();