mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Fix for npe in admin bank command
This commit is contained in:
parent
28a6bbe7ef
commit
9c7efdae06
@ -43,7 +43,12 @@ public class AdminBank extends SubCommand {
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
plugin.getGuiManager().showGUI(player, new GuiBank(plugin, island, null, true));
|
||||
if (island != null){
|
||||
plugin.getGuiManager().showGUI(player, new GuiBank(plugin, island, null, true));
|
||||
} else {
|
||||
messageManager.sendMessage(player, configLoad.getString("Command.Island.Admin.Bank.NullIsland.Message"));
|
||||
soundManager.playSound(player, CompatibleSound.BLOCK_ANVIL_LAND.getSound(), 1f, 1f);
|
||||
}
|
||||
} else {
|
||||
switch (args[0].toLowerCase()) {
|
||||
case "balance":
|
||||
|
Loading…
Reference in New Issue
Block a user