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)) { if (p.Supports(CpeExt.InstantMOTD)) {
p.SendMapMotd(); p.SendMapMotd();
} else if (p.Supports(CpeExt.HackControl)) { } else if (p.Supports(CpeExt.HackControl)) {
if (p.Game.Referee) { string motd = p.GetMotd();
p.Send(Packet.HackControl(true, true, true, true, true, -1)); if (p.Game.Referee) motd += " +hax";
} else { p.Send(Hacks.MakeHackControl(p, motd));
p.Send(Hacks.MakeHackControl(p, p.GetMotd()));
}
} }
} }

View File

@ -202,8 +202,8 @@ namespace MCGalaxy {
Send(packet); Send(packet);
if (!Supports(CpeExt.HackControl)) return; if (!Supports(CpeExt.HackControl)) return;
if (Game.Referee) motd += " +hax";
Send(Hacks.MakeHackControl(this, motd)); Send(Hacks.MakeHackControl(this, motd));
if (Game.Referee) Send(Packet.HackControl(true, true, true, true, true, -1));
} }
readonly object joinLock = new object(); readonly object joinLock = new object();