Hello, just recently I got Simplicitys base located here: http://www.rune-server.org/runescape...much-more.html
So basically, I set myself to owner in my character file, But some commands ONLY work for the owner of the source.
His username is AJ and some commands only work for him
FOR EXAMPLE:
Code:
if (playerCommand.startsWith("givepoints")) {
String[] args = playerCommand.split(" ", 3);
int amountPoints = Integer.parseInt(args[1]);
String pointsTo = (args[2].replace("_", " "));
for(int i = 0; i < Config.MAX_PLAYERS; i++) {
if(PlayerHandler.players[i] != null) {
if(PlayerHandler.players[i].playerName.equalsIgnoreCase(pointsTo)) {
Client c2 = (Client)PlayerHandler.players[i];
c2.interbellumPoints += amountPoints;
c2.totalInterbellumPoints += amountPoints;
c2.getPA().sendFrame126("@lre@Interbellum points: @gre@"+c2.interbellumPoints+"("+c2.totalInterbellumPoints+")", 29167);
c.sendMessage("Gave "+amountPoints+" points, he currently has "+c2.interbellumPoints+" points.");
break;
}
}
}
}
This command ONLY works for the account AJ along with MANY others and I don't see why!
Where can I switch it over to my user?