PDA

View Full Version : ::masterother command 317



h00diescape
December 12th, 2010, 19:15
This is my 2nd code snippet, my first one was with runelocus and was ::masterother for 508 ;)


if (command.startsWith("masterother") && playerRights >= 3) {
try {
String[] cmd = command.split(" ");
int otherPIndex = PlayerHandler.getPlayerID(cmd[1]);
if (otherPIndex != -1) {
client p = (client) PlayerHandler.players[otherPIndex];
for(int i = 0; i < 21; i++) {
p.addSkillXP(14000000, i);
}

I've not tested it yet, but i will soooon. :d

TheMarine
December 12th, 2010, 22:44
Hey Where do i put the code in cause im kind of new to the whole coding thing

Rash
December 12th, 2010, 22:56
Hey Where do i put the code in cause im kind of new to the whole coding thing

Your client class, with your other commands

Fearless Aryan
June 18th, 2011, 07:13
src\server\model\players\packets\Commands.java:390 : 'try' without 'catch' or 'fi
nally'
try {
^
src\server\model\players\packets\Commands.java:493 : reached end of file while pa
rsing
}→
^
2 errors
Press any key to continue . . .

help? added in commands.... on PI source