Referee mode should still follow jumpheight= in motd

This commit is contained in:
UnknownShadow200 2020-05-25 11:36:02 +10:00
parent 761d32eed9
commit b4dcf20054
2 changed files with 4 additions and 6 deletions

View File

@ -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));
}
}

View File

@ -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();