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); }
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; }