@EventHandler
    public void onSignClick(PlayerInteractEvent e) {
        Player p = e.getPlayer();

        if (e.getAction()==Action.RIGHT_CLICK_BLOCK||e.getAction()==Action.LEFT_CLICK_BLOCK) {
            Block b = e.getClickedBlock();
            if (b.getType()== Material.SIGN_POST||b.getType()==Material.WALL_SIGN) {
                Sign s = (Sign) b.getState();
                if (s.getLine(0).equalsIgnoreCase("§5[§3CTF§5]")&&s.getLine(1).equalsIgnoreCase("§d§nJoin")) {
                    p.performCommand("ctf join");
                } else if (s.getLine(0).equalsIgnoreCase("§5[§3CTF§5]")&&s.getLine(1).equalsIgnoreCase("§2§nLeave")) {
                    p.performCommand("ctf leave");
                }
            }
        }
    }