Unify player string

<> args are used in a lot of commands, PlayerName is used in only 3 commands and I don'T want to remove methods if not really necessary, so let's just change it here.
This commit is contained in:
NotMyFault 2019-08-15 15:39:37 +02:00
parent 41052b27a0
commit fbaef13553

View file

@ -33,7 +33,7 @@ public abstract class Argument<T> {
} }
}; };
public static final Argument<String> PlayerName = public static final Argument<String> PlayerName =
new Argument<String>("PlayerName", "Dinnerbone") { new Argument<String>("PlayerName", "<player>") {
@Override public String parse(String in) { @Override public String parse(String in) {
return in.length() <= 16 ? in : null; return in.length() <= 16 ? in : null;
} }