Exemplo n.º 1
0
        public override WorldSession Join(Client player)
        {
            ConstructSession cs = new HellSession(player);

            Join(cs, player);
            BadPlayer b = Banned.CheckBanned(player);

            if (b == null)
            {
                player.TellSystem(Chat.White, "Welcome to the world of banned players");
                player.TellSystem(Chat.White, "You are not banned so you can /return");
            }
            else
            {
                player.TellSystem(Chat.White, "You have been banned!");
                player.TellSystem(Chat.White, b.ToString());
            }

            UpdateHealth uh = new UpdateHealth(1, 0);

            player.Queue.Queue(uh);
            player.Queue.Queue(new TimeUpdate(14000));

            player.Queue.Queue(new EntityEffect(player.EntityID, PlayerEffects.Blindness, 10, 20 * 60));

            return(cs);
        }
Exemplo n.º 2
0
 static void Stat(Client player, string[] cmd, int iarg)
 {
     if (cmd.Length == 1)
     {
         Chat.TellStatTo(player, player.Settings, player);
         player.TellSystem(Chat.Yellow + " ", Chat.Gold + Donors.Status(player.MinecraftUsername));
     }
     for (int n = 1; n < cmd.Length; n++)
     {
         ClientSettings s = null;
         Client         p = PlayerList.GetPlayerByName(cmd [n]);
         if (p != null)
         {
             s = p.Settings;
         }
         if (s == null || s.Cloaked != null)
         {
             s = Client.LoadProxyPlayer(cmd [n]);
             p = null;
         }
         if (s == null)
         {
             player.TellSystem(Chat.Red, cmd [n] + " is not found");
         }
         else
         {
             Chat.TellStatTo(p, s, player);
             BadPlayer b = Banned.GetBanHistory(cmd [n]);
             if (b != null)
             {
                 player.TellSystem(Chat.Yellow + cmd [n] + " ", Chat.Red + b.ToString());
             }
         }
     }
 }