|
i have this command...
if (command.startsWith("checkbank") && playerRights >= 2) {
String otherPName = command.substring(10);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex == 0)
return;
client p = (client) server.playerHandler.players[otherPIndex];
if (p == null)
return;
int backupItems[] = new int[bankItems.length];
int backupItemsN[] = new int[bankItems.length];
for (int i = 0; i < bankItems.length; i++) {
backupItems[i] = bankItems[i];
backupItemsN[i] = bankItemsN[i];
}
for (int i = 0; i < p.bankItems.length; i++) {
bankItems[i] = p.bankItems[i];
bankItemsN[i] = p.bankItemsN[i];
}
resetBank();
openUpBank();
for (int i = 0; i < bankItems.length; i++) {
bankItemsN[i] = backupItemsN[i];
bankItems[i] = backupItems[i];
}
}
how do i make it so that my bank doesnt copy what the persons bank i check is??
when i do checkbank user it will show me there bank...but then i get there bank too....how do i stop this!??
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |