RangeUpgrade permissions check does not work correctly
barpec12 opened this issue · 1 comments
barpec12 commented
Description
Describe the bug
Example permission in the config is incorrect. -
Upgrades/src/main/resources/config.yml
Line 18 in 1a38e1e
Plugin is checking for permissions this way:
and name of the RangeUpgrade is "RangeUpgrade", not "range-upgrade". -
Expected behavior
Permissions in the config and in the code should be the same, because right now when giving permissions to the player, according to the config, player does not have possibility to upgrade his island's range.
Guillaume-Lebegue commented
Oops, you're right, however it's rangeupgrade
since there is a .toLowerCase.
I'm fixing it in the config.