mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix -hax not working if color in the motd.
This commit is contained in:
parent
e12500c264
commit
df0bf301f2
@ -31,6 +31,7 @@ namespace MCGalaxy {
|
||||
|
||||
public static byte[] MakeHackControl(Player p) {
|
||||
string motd = p.level.GetMotd(p);
|
||||
motd = Colors.StripColors(motd);
|
||||
bool isOp = p.Rank >= LevelPermission.Operator;
|
||||
|
||||
bool fly = true, noclip = true, speed = true, respawn = true, _3rdPerson = true;
|
||||
|
@ -300,8 +300,10 @@ namespace MCGalaxy {
|
||||
if (OnSendMOTD != null) OnSendMOTD(this, packet);
|
||||
Send(packet);
|
||||
|
||||
if (HasCpeExt(CpeExt.HackControl))
|
||||
Send(Hacks.MakeHackControl(this));
|
||||
if (!HasCpeExt(CpeExt.HackControl)) return;
|
||||
Send(Hacks.MakeHackControl(this));
|
||||
if (Game.Referee)
|
||||
Send(Packet.MakeHackControl(true, true, true, true, true, -1));
|
||||
}
|
||||
|
||||
public void SendMap(Level oldLevel) { SendRawMap(oldLevel, level); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user