mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +08:00
Fix cannot stop in dispatch-only mode (#2534)
This commit is contained in:
parent
76fd5b2e9c
commit
d340758614
@ -17,8 +17,10 @@ public final class StopCommand implements CommandHandler {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
public void execute(Player sender, Player targetPlayer, List<String> args) {
|
||||||
CommandHandler.sendMessage(null, translate("commands.stop.success"));
|
CommandHandler.sendMessage(null, translate("commands.stop.success"));
|
||||||
for (Player p : Grasscutter.getGameServer().getPlayers().values()) {
|
if (Grasscutter.getGameServer() != null) {
|
||||||
CommandHandler.sendMessage(p, translate(p, "commands.stop.success"));
|
for (Player p : Grasscutter.getGameServer().getPlayers().values()) {
|
||||||
|
CommandHandler.sendMessage(p, translate(p, "commands.stop.success"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
System.exit(1000);
|
System.exit(1000);
|
||||||
|
Loading…
Reference in New Issue
Block a user