if(c.playerRights >= change this) {
if (playerCommand.startsWith("bank")) {
c.getPA().openUpBank();
}
}
|
Trying to get my ;;bank command to only work for donator+
using this but it wont work
Haven't coded since 2011 so feel free to tear away at me but shouldn't allow players with rights from 1-10 use the ;;bank command?Code:} if (cmd[0].equalsIgnoreCase("bank")) { if (player.getRights() < 1 && player.getRights() > 10) { player.getBank().openBank(); return true; }
I looked around before I wrote this thread and found something along the lines of is.playerInGroup("Donator")) { and that just gave me a shit load of errors.
?Code:if (playerCommand.equalsIgnoreCase("bank") && c.isDonator >= 1 ) { c.getPA().openUpBank(); }
Code:if (cmd[0].equalsIgnoreCase("bank")) { if (player.getRights() >= 1) { player.getBank().openBank(); return true; } }
Forgot to say, 667 guys.
Oops, sorry!
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |