Fix for NullPointer in permissions

This commit is contained in:
Fabrizio La Rosa 2020-06-17 15:10:56 +02:00
parent 1055f755d8
commit 466b5ae8c6
2 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public abstract class ListeningPermission extends BasicPermission {
protected void noPermsMessage(Player player, SkyBlock plugin, MessageManager messageManager) {
messageManager.sendMessage(player,
plugin.getFileManager().getConfig(new File(plugin.getDataFolder(), "language.yml"))
.getFileConfiguration().getString("Island.Settings.Permission.Message"));
.getFileConfiguration().getString("Island.Permission.Message"));
CompatibleSound.ENTITY_VILLAGER_NO.play(player);
}

View File

@ -8,6 +8,8 @@ ClassLocalization:
Owner: 'Owner'
Command:
Island:
Permission:
Message: '&bSkyBlock &8| &cError&8: &eYou don''t have the permission to to this.'
Bans:
Owner:
Message: '&bSkyBlock &8| &cError&8: &eYou are not an Island Owner.'