Messaging.send(sender, tag + template.parse());
return false;
}
Account account = new Account(name);
if(arguments.get("status").getStringValue().equalsIgnoreCase("empty")) {
int current = account.getStatus();
if(self)
template.set(Template.Node.PERSONAL_STATUS);
else {
template.set(Template.Node.PLAYER_STATUS);
template.add("name", name);
}
template.add("status", current);
Messaging.send(sender, tag + template.parse());
} else {
if(!hasPermissions(sender, "status+"))
throw new InvalidUsage("You do not have permission to do that.");
int status = arguments.get("status").getIntegerValue();
account.setStatus(status);
template.set(Template.Node.ACCOUNTS_STATUS);
template.add("status", status);
Messaging.send(sender, tag + template.parse());
}