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!??