mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Revert "Doesn't kick all players if the player has permission (#2145) @montlikadani"
This reverts commit 5c1db129d3
.
This commit is contained in:
parent
5c1db129d3
commit
cda520589a
1 changed files with 1 additions and 3 deletions
|
@ -20,9 +20,7 @@ public class Commandkickall extends EssentialsCommand {
|
|||
|
||||
for (Player onlinePlayer : ess.getOnlinePlayers()) {
|
||||
if (!sender.isPlayer() || !onlinePlayer.getName().equalsIgnoreCase(sender.getPlayer().getName())) {
|
||||
if (!onlinePlayer.isAuthorized("essentials.kickall.exempt")) {
|
||||
onlinePlayer.kickPlayer(kickReason);
|
||||
}
|
||||
onlinePlayer.kickPlayer(kickReason);
|
||||
}
|
||||
}
|
||||
sender.sendMessage(tl("kickedAll"));
|
||||
|
|
Loading…
Reference in a new issue