Beispiel #1
0
 public override void Use(Player p, params string[] args)
 {
     if (args.Length != 0)
     {
         Help(p);
         return;
     }
     p.Teleport_Spawn();
     //p.Teleport_Player(p.level.SpawnX, p.level.SpawnY, p.level.SpawnZ);
     /*byte[] bytes = new byte[41];
     util.EndianBitConverter.Big.GetBytes(p.level.SpawnX).CopyTo(bytes, 0);
     util.EndianBitConverter.Big.GetBytes(p.Stance).CopyTo(bytes, 8);
     util.EndianBitConverter.Big.GetBytes(p.level.SpawnY).CopyTo(bytes, 16);
     util.EndianBitConverter.Big.GetBytes(p.level.SpawnZ).CopyTo(bytes, 24);
     util.EndianBitConverter.Big.GetBytes(p.rot[0]).CopyTo(bytes, 32);
     util.EndianBitConverter.Big.GetBytes(p.rot[1]).CopyTo(bytes, 36);
     bytes[40] = p.onground;
     p.SendRaw(0x0D, bytes);*/
 }