use alphanumeric

This commit is contained in:
ChomeNS
2023-04-28 17:01:29 +07:00
parent 40d8af9be8
commit 283598d52c
2 changed files with 29 additions and 28 deletions

View File

@@ -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);