ru.cwcode.commands.paperplatform.argument.PlayerArg Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of PaperCommands Show documentation
Show all versions of PaperCommands Show documentation
Commands library for Paper (Minecraft)
The newest version!
package ru.cwcode.commands.paperplatform.argument;
import static ru.cwcode.commands.api.CommandsAPI.l10n;
public class PlayerArg extends OnlinePlayers {
@Override
public boolean valid(String raw) {
return raw.matches("^\\w{3,16}$");
}
@Override
public String argumentName() {
return l10n.get("argument.player.name");
}
@Override
public String map() {
return raw;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy