mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
You should be able to use all hacks when in /ref mode.
This commit is contained in:
parent
4f2c197f0d
commit
ca7b2c076f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user