mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 18:11:52 +01:00
Don't kick exempt players when running /kickall
This commit is contained in:
parent
cda520589a
commit
959c788f22
@ -20,7 +20,9 @@ public class Commandkickall extends EssentialsCommand {
|
||||
|
||||
for (Player onlinePlayer : ess.getOnlinePlayers()) {
|
||||
if (!sender.isPlayer() || !onlinePlayer.getName().equalsIgnoreCase(sender.getPlayer().getName())) {
|
||||
onlinePlayer.kickPlayer(kickReason);
|
||||
if (!ess.getUser(onlinePlayer).isAuthorized("!essentials.kickall.exempt")) {
|
||||
onlinePlayer.kickPlayer(kickReason);
|
||||
}
|
||||
}
|
||||
}
|
||||
sender.sendMessage(tl("kickedAll"));
|
||||
|
Loading…
Reference in New Issue
Block a user