* Update timeout timestamp on player.
*/
entry.update();
/* Send the action to RP Manager */
RPAction action = msg.getRPAction();
/*
* NOTE: These are action attributes that are important for RP
* functionality. Tag them in such way that it is not possible to
* change them on a buggy RP implementation or it will cause
* problems at server.
*/
RPObject object = entry.object;
action.put("sourceid", object.get("id"));
action.put("zoneid", object.get("zoneid"));
stats.add("Actions added", 1);
/*
* Log the action into statistics system. Or if the action didn't
* have type, log it as an invalid action.
*/
String type = action.get("type");
if (type != null) {
stats.add("Actions " + type, 1);
} else {
stats.add("Actions invalid", 1);
}