Compare commits

..

1 Commits

Author SHA1 Message Date
Phong
34661078c5
Merge 0b8f9ad851 into 76fd5b2e9c 2024-07-25 02:01:51 +00:00

View File

@ -17,10 +17,8 @@ public final class StopCommand implements CommandHandler {
@Override
public void execute(Player sender, Player targetPlayer, List<String> args) {
CommandHandler.sendMessage(null, translate("commands.stop.success"));
if (Grasscutter.getGameServer() != null) {
for (Player p : Grasscutter.getGameServer().getPlayers().values()) {
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);