mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-10-03 10:33:29 -04:00
Referee mode should still follow jumpheight= in motd
This commit is contained in:
parent
761d32eed9
commit
b4dcf20054
@ -42,11 +42,9 @@ namespace MCGalaxy.Commands.Fun {
|
||||
if (p.Supports(CpeExt.InstantMOTD)) {
|
||||
p.SendMapMotd();
|
||||
} else if (p.Supports(CpeExt.HackControl)) {
|
||||
if (p.Game.Referee) {
|
||||
p.Send(Packet.HackControl(true, true, true, true, true, -1));
|
||||
} else {
|
||||
p.Send(Hacks.MakeHackControl(p, p.GetMotd()));
|
||||
}
|
||||
string motd = p.GetMotd();
|
||||
if (p.Game.Referee) motd += " +hax";
|
||||
p.Send(Hacks.MakeHackControl(p, motd));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,8 +202,8 @@ namespace MCGalaxy {
|
||||
Send(packet);
|
||||
|
||||
if (!Supports(CpeExt.HackControl)) return;
|
||||
if (Game.Referee) motd += " +hax";
|
||||
Send(Hacks.MakeHackControl(this, motd));
|
||||
if (Game.Referee) Send(Packet.HackControl(true, true, true, true, true, -1));
|
||||
}
|
||||
|
||||
readonly object joinLock = new object();
|
||||
|
Loading…
x
Reference in New Issue
Block a user