mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 09:51:17 +02:00
ParameterName.UUID: Allow [uuid] in the strings configuration.
This commit is contained in:
parent
b6034162ee
commit
e103acea4a
@ -4,19 +4,21 @@ package fr.neatmonster.nocheatplus.actions;
|
||||
* 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");
|
||||
|
||||
|
@ -135,6 +135,8 @@ public class ViolationData implements IViolationInfo, ActionData{
|
||||
return player.getName();
|
||||
case VIOLATIONS:
|
||||
return String.valueOf((long) Math.round(vL));
|
||||
case UUID:
|
||||
return player.getUniqueId().toString();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user