#I have quite a problem I have a

1 messages · Page 1 of 1 (latest)

quasi halo
#
String permission = this.config.getString("menu." + slot + ".permission").toLowerCase();

        ProxiedPlayer proxiedPlayer = ProxyServer.getInstance().getPlayer(player.getUniqueId());

        if (!(permission == null || proxiedPlayer.hasPermission(permission))) {
            player.sendMessage(Colors.parseColors(this.config.getString("action-permission")));
            return true;
        }
#
  12:
    ping-server: true
    ip: localhost
    port: 25567
    action: 'srv:survival'
    permission: 'ssx.permission.survival'
    online:
      item: lime_concrete
      name: "&7| &aTest Survival &7|"
      lore:
       - '&7There are {online} out of {max} players online.'
       - '&7Basic test server for bungeecord learning'

    offline:
      item: red_concrete
      name: "&7| &cTest Survival &7|"
      lore:
       - '&7The server is currently offline!'
#
String permission = this.config.getString("menu." + slot + ".permission").toLowerCase();

        //ProxiedPlayer proxiedPlayer = ProxyServer.getInstance().getPlayer(player.getUniqueId());

        if (!(permission == null || player.hasPermission(permission))) {
            player.sendMessage(Colors.parseColors(this.config.getString("action-permission")));
            return true;
        }
#

I have changed to this

#

And still doesn't work