return true; under player.getBank().openBank();
|
hello, i want to make the command "bank" for donators+ ,but dont work
case "bank":
if (player.isDonator()) {
if (!player.canSpawn()) {
player.getPackets()
.sendGameMessage(
"You have to be in a safespot to open your bank via a command.");
return false;
}
player.getBank().openBank();
} else {
player.getPackets().sendGameMessage(
"You need to be a donator to access ::bank.");
}
return true;
i give a donor acces, and i try to do ::bank dont work ....
Why don't you just add it in the donator proccess commands?
Code:if (cmd[0].equals("bank")) { if (!player.canSpawn()) { player.getPackets() .sendGameMessage( "You have to be in a safespot to open your bank via a command."); } else { player.getBank().openBank(); return true; }
Code:case "bank": if (!player.canSpawn()) { player.getPackets().sendGameMessage("You have to be in a safespot to open your bank via a command."); return true; } if (!player.isDonator() || !player.isExtremeDonator()) { player.getPackets().sendGameMessage("This command is restricted to donators."); return true; } player.getBank().openBank(); return true;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |