fix: some fixes to make the bot work on bagel fabric kaboom clone and also vanilla servers

can't believe that paragraph in InfoCommand was wrong the whole time ("works on vanilla servers too")
This commit is contained in:
ChomeNS
2025-03-22 11:39:00 +07:00
parent 83ac7632c6
commit 210dd7aaa1
10 changed files with 60 additions and 13 deletions

View File

@@ -254,7 +254,7 @@ public class ChatPlugin extends Bot.Listener {
if (message.startsWith("/")) {
String removedMessage = message.substring(1);
if (bot.options.removeNamespaces) {
if (!bot.serverFeatures.hasNamespaces) {
final String[] splittedSpace = removedMessage.split("\\s+"); // [minecraft:test, arg1, arg2, ...]
final String[] splittedColon = splittedSpace[0].split(":"); // [minecraft, test]
if (splittedColon.length >= 2) {