fix: 修复了没有前缀的问题

This commit is contained in:
Disy authored and zly2006 committed 2024-07-11 12:14:02 +08:00
1 parent 2063933634
commit 4ba41aaf42
1 file changed
+1 -1
@@ -274,7 +274,7 @@ public class BotCommand {
source.getWorld().getRegistryKey() source.getWorld().getRegistryKey()
); );
String playerName = StringArgumentType.getString(context, "player"); String playerName = "bot_" + StringArgumentType.getString(context, "player");
if (playerName.length() > maxNameLength(source.getServer())) if (playerName.length() > maxNameLength(source.getServer()))
{ {
Messenger.m(source, "rb Player name: " + playerName + " is too long"); Messenger.m(source, "rb Player name: " + playerName + " is too long");