Best way to have permissions with a number.

Discussion in 'Spigot Plugin Development' started by black_, Jun 3, 2017.

  1. I'm wondering what would be the best way to have a permission node, that when added (with a number), like playervaults.1 or essentials.homes.2 allows me to get that value and do something with it. Any help is appreciated.
     
  2. Like see all the permissions the player has and see the one start starts with "permnode.thing." and get the number after?
     
  3. ScarabCoder

    ScarabCoder Retired Resource Staff
    Retired

    There's Player#getEffectivePermissions(), maybe that'll work?
     
    • Agree Agree x 1