Пример #1
0
	public override void onPlayerJoin(PlayerEvent ev)

	{

	    this.motd(ev.getPlayer());

	    if (kickorban == "kick" && !ev.getPlayer().hasPermissions("terracmd.antihack.bypass"))

	    {

		if (ev.getPlayer().statLifeMax > 400 | ev.getPlayer().statManaMax > 200)

		{

		    NetMessage.SendData(2, ev.getPlayer().whoAmi, -1, "You were kicked for having hacked stats!", 0, 0f, 0f, 0f);

		    Console.WriteLine(ev.getPlayer().name + " was kicked for hacking their health or mana!");

		}

	    }

	}
Пример #2
0
        public override void onPlayerJoin(PlayerEvent ev)
        {
            Player player = ev.getPlayer();
            CancelPlayerState(player);

            ProtectedRegion region = GetRegion(player.name);
            if (region == null || player.hasPermissions(PERMISSION_USE))
            {
                WisperPlayer(player, "This server offers region protection. After logging in type: /region help");
            }
        }