Skip to content

Commit

Permalink
ParameterName.UUID: Allow [uuid] in the strings configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Apr 1, 2014
1 parent b603416 commit e103ace
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Expand Up @@ -4,19 +4,21 @@
* Some wildcards that are used in commands and log messages.
*/
public enum ParameterName {
BLOCK_ID("blockid"),
// TODO: Cleanup for some kind of policies: useful names, alternative names, prefer generic names.
BLOCK_ID("blockid"), // TODO: Block name ?
CHECK("check"),
TAGS("tags"),
DISTANCE("distance"),
FALL_DISTANCE("falldistance"),
FALL_DISTANCE("falldistance"), // TODO: rather not deprecate ?
FOOD("food"),
IP("ip"),
LIMIT("limit"),
LOCATION_FROM("locationfrom"),
LOCATION_TO("locationto"),
PACKETS("packets"),
PLAYER("player"),
REACH_DISTANCE("reachdistance"),
PLAYER("player"), // TODO: playername rather ? + displayname ?
REACH_DISTANCE("reachdistance"), // TODO: deprecate ?
UUID("uuid"),
VIOLATIONS("violations"),
WORLD("world");

Expand Down
Expand Up @@ -135,6 +135,8 @@ public String getParameter(final ParameterName parameterName){
return player.getName();
case VIOLATIONS:
return String.valueOf((long) Math.round(vL));
case UUID:
return player.getUniqueId().toString();
default:
break;
}
Expand Down

0 comments on commit e103ace

Please sign in to comment.