Permission check

Discussion in 'Plugin Development' started by bennie3211, Nov 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    bennie3211

    Hello bukkit,

    I've a question, I'm trying to make a money plugin that will reward players when they kill a player or certain mob. I got this working, but now I want to make a custom multiplier with the use of permissions. So if a player has the permission 'kills.mobs.creeper.4' it will multiply the reward by 4. Is there a way to detect what number is in there permission?
     
  2. Offline

    Th3Br1x

    bennie3211
    Well, you could do a for-loop and check, if player has permission
    'kills.mobs.creeper.' + i
     
  3. Offline

    ColonelHedgehog

Thread Status:
Not open for further replies.

Share This Page