Prevent prefix from starting with a slash

This commit is contained in:
hhhzzzsss 2024-05-23 13:13:39 -05:00
parent 9b961dfabf
commit ec56816612

View file

@ -185,6 +185,10 @@ public class CommandProcessor {
SongPlayer.addChatMessage("§cPrefix cannot contain a space");
return true;
}
else if (args.startsWith("/")) {
SongPlayer.addChatMessage("§cPrefix cannot start with a /");
return true;
}
else if (args.length() > 0) {
Config.getConfig().prefix = args;
SongPlayer.addChatMessage("§6Set prefix to " + args);