Originally Posted by
Emrage
This doesn't work
Code:
if (playerCommand.startsWith("bank") && c.playerRights == 5) {
if (c.inWild() || c.inDuel)
c.sendMessage("You can't use this here");
} else {
c.getPA().openUpBank();
}
}
When im outside of the wildy or duel nothing happens
but when im inside it it says the message
but it does work if i make it a dialogue action
Code:
if (playerCommand.startsWith("bank") && c.playerRights == 5) {
if (c.inWild() || c.inDuel) {
c.sendMessage("You can't use this here");
} else {
c.getPA().openUpBank();
}
}
There you go all fixed you were just missing a open bracket which screwed everything up.