BentoBoxWorld/Upgrades

RangeUpgrade permissions check does not work correctly

barpec12 opened this issue · 1 comments

Description

Describe the bug

Example permission in the config is incorrect. -

# "bskyblock.upgrades.range-upgrade.2"

Plugin is checking for permissions this way:
String permissionStart = gamemode + ".upgrades." + this.getName() + ".";

and name of the RangeUpgrade is "RangeUpgrade", not "range-upgrade". -
super(addon, "RangeUpgrade", "RangeUpgrade", Material.OAK_FENCE);

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.

Oops, you're right, however it's rangeupgrade since there is a .toLowerCase.

I'm fixing it in the config.