mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -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) {
|
public static byte[] MakeHackControl(Player p) {
|
||||||
string motd = p.level.GetMotd(p);
|
string motd = p.level.GetMotd(p);
|
||||||
|
motd = Colors.StripColors(motd);
|
||||||
bool isOp = p.Rank >= LevelPermission.Operator;
|
bool isOp = p.Rank >= LevelPermission.Operator;
|
||||||
|
|
||||||
bool fly = true, noclip = true, speed = true, respawn = true, _3rdPerson = true;
|
bool fly = true, noclip = true, speed = true, respawn = true, _3rdPerson = true;
|
||||||
|
@ -300,8 +300,10 @@ namespace MCGalaxy {
|
|||||||
if (OnSendMOTD != null) OnSendMOTD(this, packet);
|
if (OnSendMOTD != null) OnSendMOTD(this, packet);
|
||||||
Send(packet);
|
Send(packet);
|
||||||
|
|
||||||
if (HasCpeExt(CpeExt.HackControl))
|
if (!HasCpeExt(CpeExt.HackControl)) return;
|
||||||
Send(Hacks.MakeHackControl(this));
|
Send(Hacks.MakeHackControl(this));
|
||||||
|
if (Game.Referee)
|
||||||
|
Send(Packet.MakeHackControl(true, true, true, true, true, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendMap(Level oldLevel) { SendRawMap(oldLevel, level); }
|
public void SendMap(Level oldLevel) { SendRawMap(oldLevel, level); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user