mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 11:10:04 +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) {
|
if (args.length < 1) {
|
||||||
|
if (island != null){
|
||||||
plugin.getGuiManager().showGUI(player, new GuiBank(plugin, island, null, true));
|
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 {
|
} else {
|
||||||
switch (args[0].toLowerCase()) {
|
switch (args[0].toLowerCase()) {
|
||||||
case "balance":
|
case "balance":
|
||||||
|
Loading…
Reference in New Issue
Block a user