Compare commits

..

1 Commits

Author SHA1 Message Date
Breno A
e04638f2a9
Merge 0e7e165dff into 76fd5b2e9c 2024-06-10 10:52:57 +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);