Quote from outi
Guys, i figured out how permissions for two-words runes works. I was desperate, so i decided to look into the runecraft code.
First thing, tool runes: permissions for creating runes acts different as for using. for example 'power axe':
When rune is created, space character between words is not removed, so runecraft checks for 'runecraft.runes.power axe' permission node (it works fine on PermissionsBukkit)
When i'm trying to use 'power axe', i mean "runecraft enchanted" axe, the plugin removes space in rune name and the correct one is 'runecraft.runes.poweraxe.use'
Zeexix, SuperLlama, please do some clarifications
paramString.replaceAll("[^A-Za-z0-9]+", "") [...]
paramString.replaceAll("[^A-Za-z0-9 ]+", "") [...]
I have tried this and it doesn't work. Its only certain runes that aren't working for me. Every single rune is working except the tool runes like powerpick firepick greenthumb, tunnelshovel etc....
It works if u have the "runecraft.runes.*" permissions but not if i have just "runecraft.runes.powerpick"