mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /ref. (Thanks VenkSociety)
This commit is contained in:
parent
44ef5f68b3
commit
87bcda2da6
@ -98,12 +98,14 @@ namespace MCGalaxy.Games.ZS {
|
|||||||
if (action == PlayerAction.UnReferee) {
|
if (action == PlayerAction.UnReferee) {
|
||||||
Game.PlayerJoinedLevel(p, Game.CurLevel, Game.CurLevel);
|
Game.PlayerJoinedLevel(p, Game.CurLevel, Game.CurLevel);
|
||||||
Command.all.Find("spawn").Use(p, "");
|
Command.all.Find("spawn").Use(p, "");
|
||||||
|
p.Game.Referee = false;
|
||||||
|
|
||||||
if (p.HasCpeExt(CpeExt.HackControl))
|
if (p.HasCpeExt(CpeExt.HackControl))
|
||||||
p.Send(Hacks.MakeHackControl(p));
|
p.Send(Hacks.MakeHackControl(p));
|
||||||
} else {
|
} else {
|
||||||
HandlePlayerDisconnect(p, null);
|
HandlePlayerDisconnect(p, null);
|
||||||
Entities.GlobalDespawn(p, false, true);
|
Entities.GlobalDespawn(p, false, true);
|
||||||
|
p.Game.Referee = true;
|
||||||
|
|
||||||
if (p.HasCpeExt(CpeExt.HackControl))
|
if (p.HasCpeExt(CpeExt.HackControl))
|
||||||
p.Send(Packet.HackControl(true, true, true, true, true, -1));
|
p.Send(Packet.HackControl(true, true, true, true, true, -1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user