fix: netcmd still executing on all server even when bot not logged in

This commit is contained in:
ChomeNS
2025-04-12 11:59:29 +07:00
parent 4685e37b4f
commit b9386f86e1
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,6 @@ public class NetCommandCommand extends Command {
final String[] servers = rawServers.split(",");
for (final Bot bot : allBots) {
if (!bot.loggedIn) continue;
for (final String server : servers) {
if (
server.isBlank()
@@ -59,6 +57,8 @@ public class NetCommandCommand extends Command {
final String command = context.getString(true, true);
for (final Bot bot : bots) {
if (!bot.loggedIn) continue;
final CommandContext remoteContext = new RemoteCommandContext(bot, context);
context.bot.commandHandler.executeCommand(command, remoteContext, null);