Advertisement
AqUpd

Untitled

Apr 17th, 2022
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. String argument = String.valueOf(event.getArgs());
  2. if(argument.length() != 1){
  3.     event.replyError("ошибка");
  4. } else {
  5.     if(argument.matches("^\\w{3,16}$")) event.reply("nice nickname");
  6.     else event.reply("bad nickname");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement