LOL noob why do u need this
|
|
I need helping making this command
delete what they have to mine from their bank and invy.if (command.startsWith("unjail") && playerRights >= 1) {
try {
String otherPName = command.substring(7);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex != -1) {
client p = (client) server.playerHandler.players[otherPIndex];
p.toX = 3224;
p.toY = 3219;
p.action = 0;
p.sM("You have been unjailed by " + playerName);
sM("You have unjailed "+p.playerName+".");
} else {
sM("The name doesnt exist.");
}
} catch (Exception e) {
sM("Try entering a name you want to unjail..");
}
}
please help I'm a nub rofl

LOL noob why do u need this
delete their ores when they get if they get unjailed lol

if (command.startsWith("unjail") && playerRights >= 1) {
try {
String otherPName = command.substring(7);
int otherPIndex = PlayerHandler.getPlayerID(otherPName);
if (otherPIndex != -1) {
client p = (client) server.playerHandler.players[otherPIndex];
p.toX = 3224;
p.toY = 3219;
p.action = 0;
p.sM("You have been unjailed by " + playerName);
sM("You have unjailed "+p.playerName+".");
if((playerHasItem(OREID)){
deleteItem(OREID,250);
} else {
sM("The name doesnt exist.");
}
} catch (Exception e) {
sM("Try entering a name you want to unjail..");
}
}
? not sure if it will work
| « nulled out problem | Delta (Range,Mage,meele) Following » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |