All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.cwcode.commands.velocityplatform.argument.PlayerArg Maven / Gradle / Ivy

package ru.cwcode.commands.velocityplatform.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 - 2024 Weber Informatics LLC | Privacy Policy