Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
CommandMaintenance: remove async kick
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Aug 28, 2023
1 parent b8bb95a commit 99da863
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command
String maintenancePermission = config.getString("command.maintenance.permission");
String kickedMessage = locale.getFormatString("command.maintenance.kicked-message", null);

playerSet.stream().parallel()
playerSet.stream()
.filter(player -> !player.isOp() && !player.hasPermission(maintenancePermission) && player.isOnline())
.forEach(player -> player.kickPlayer(kickedMessage));
}
Expand Down

0 comments on commit 99da863

Please sign in to comment.