mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-10 16:51:41 +01:00
Fix for NullPointer in permissions
This commit is contained in:
parent
1055f755d8
commit
466b5ae8c6
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user