diff --git a/src/main/java/com/comandante/creeper/command/commands/admin/RestartCommand.java b/src/main/java/com/comandante/creeper/command/commands/admin/RestartCommand.java index 246125c45902b07ebc07f67c2ec2fca9e72524a0..d9f501bbae07ab27baaaf176badd1b7e41316ba2 100644 --- a/src/main/java/com/comandante/creeper/command/commands/admin/RestartCommand.java +++ b/src/main/java/com/comandante/creeper/command/commands/admin/RestartCommand.java @@ -28,6 +28,7 @@ public class RestartCommand extends Command { public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception { execCommandThreadSafe(ctx, e, BounceIrcBotCommand.class, () -> { playerManager.getAllPlayersMap().values().stream() + .filter(player -> player.getChannel().isConnected()) .forEach(player -> gameManager.getChannelUtils().write(player.getPlayerId(), " 88 \n" + " 88 ,d \n" +