示例#1
0
        public override void SetMode(GameMode mode)
        {
            if (this.Mode == mode)
            {
                return;
            }
            World.Send("gamemode " + ((int)mode) + " " + Player.MinecraftUsername);

            base.SetMode(mode);
        }
示例#2
0
 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;
 }