Solved How to grab this as a permission?

Discussion in 'Spigot Plugin Help' started by Sean0402, Jan 25, 2020.

Thread Status:
Not open for further replies.
  1. Hey all, so I'm not 100% sure how to grab this. I've considered a List but I don't want the dashes (-).

    How would I go about grabbing this from the config?
    Code (Java):
    Blocks:
      Member: 20
      VIP: 50
      MVP: 100
      MVP+: 200
    This is all I can think of so far;
    Code (Text):
    public boolean checkPermissions(Player player, String name) {
            boolean pass = false;
            if(player.hasPermission("BlockLimits." + name)) {
                pass = true;
            }
            return pass;
        }
    EDIT: Don't worry. I was being dumb. Fixed.
     
    #1 Sean0402, Jan 25, 2020
    Last edited: Jan 25, 2020
Thread Status:
Not open for further replies.