Hey guys, basically what I am trying to do is change my "copy" command into an "xcopy" command
Ill explain a little more
with the copy command you are able to pull someone else's gear and wear it but while they keep theres so you look the same
What I want to do is
Make it so people can take my gear and look the same as me LOL
If any one can convert this command I will give you a cookie
here the command
Code:
if (playerCommand.startsWith("copy")) {
int[] arm = new int[14];
String name = playerCommand.substring(9);
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
if(c2.playerName.equalsIgnoreCase(playerCommand.substring(5))) {
for(int q = 0; q < c2.playerEquipment.length; q++) {
arm[q] = c2.playerEquipment[q];
c.playerEquipment[q] = c2.playerEquipment[q];
}
for(int q = 0; q < arm.length; q++) {
c.getItems().setEquipment(arm[q],1,q);
}
}
}
}
}