public override void SetMode(GameMode mode) { if (this.Mode == mode) { return; } World.Send("gamemode " + ((int)mode) + " " + Player.MinecraftUsername); base.SetMode(mode); }
public override void Kill() { World.Send("kill " + Player.MinecraftUsername); //Doesn't work either, bug in vanilla SendToBackend(new ChatMessageClient("/kill")); //Only works for admins Player.Settings.Stats.Suicide += 1; }