From 283598d52c5152259d56ee60354d9d7a1f33d2a2 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:01:29 +0700 Subject: [PATCH] use alphanumeric --- .idea/workspace.xml | 55 ++++++++++--------- .../chipmunk/chayapak/chomens_bot/Bot.java | 2 +- 2 files changed, 29 insertions(+), 28 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c2771e1..9a9ceca 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,8 +4,9 @@ - - - @@ -480,7 +478,10 @@ - diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/Bot.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/Bot.java index eee4627..e76c540 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/Bot.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/Bot.java @@ -118,7 +118,7 @@ public class Bot { final String _username = options.username(); - if (_username == null) username = RandomStringUtils.randomAlphabetic(8); + if (_username == null) username = RandomStringUtils.randomAlphanumeric(8); else username = _username; Session session = new TcpClientSession(host, port, new MinecraftProtocol(username), null);