mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -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) {
|
||||
Game.PlayerJoinedLevel(p, Game.CurLevel, Game.CurLevel);
|
||||
Command.all.Find("spawn").Use(p, "");
|
||||
p.Game.Referee = false;
|
||||
|
||||
if (p.HasCpeExt(CpeExt.HackControl))
|
||||
p.Send(Hacks.MakeHackControl(p));
|
||||
} else {
|
||||
HandlePlayerDisconnect(p, null);
|
||||
Entities.GlobalDespawn(p, false, true);
|
||||
p.Game.Referee = true;
|
||||
|
||||
if (p.HasCpeExt(CpeExt.HackControl))
|
||||
p.Send(Packet.HackControl(true, true, true, true, true, -1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user