graywolf336 / CasinoSlots

Animated, customizable, block-based slot machines, including audio, inside of Minecraft!
http://dev.bukkit.org/server-mods/casino-slots/
GNU General Public License v2.0
23 stars 24 forks source link

PermissionsEx #37

Closed risingherorpg closed 10 years ago

risingherorpg commented 11 years ago

Hello, The permissions for this plugin do not work with my permissions plugin (PermissionsEx). Meaning, if a user does not have the permission to use a slot, they still can.

Please fix this bug, Thanks, Rising Hero RPG

graywolf336 commented 11 years ago

They should as I just check using the system Bukkit has built in and I know for a fact that they do work because I use PermissionsEx on my server.

What permission nodes are you giving them?

risingherorpg commented 11 years ago

Interesting.

Basically I have a default "Player" group and a "HighRoller" group which permissions are listed below.

HighRoller: inheritance:

The player class has no CasinoSlots permission nodes. I have both of the use nodes because I do not know which one is correct.

The Idea is that when a Player buys the HighRoller class they can use the HighRoller slot machine. However players can also use this after they no longer have the HighRoller class.

Thank you for your help.

graywolf336 commented 11 years ago

It's either or for the permissions, but you need to set the node to false on the group "Player" as the plugin automatically gives everyone it. (see: here)

So, in the Player group do the following:

Player:
  permissions:
    - -casinoslots.use

And that should work, basically just remove the permission from the Player group.

risingherorpg commented 11 years ago

Thanks!

graywolf336 commented 11 years ago

You're welcome, did it work?

risingherorpg commented 11 years ago

Haven't checked yet and wont be able to today. Ill let you know.

Thanks!

P.S. If I don't get back to you within a couple days remind me :)

graywolf336 commented 11 years ago

@risingherorpg Did it work?

risingherorpg commented 11 years ago

nope i sorta gave up its all good