Merge pull request #1 from hyWse/hyWse-patch-1

Do not kick plot owners on "/p deny *"
This commit is contained in:
Daniel 2020-02-23 17:32:23 +01:00 committed by GitHub
commit f605c0b113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,10 @@ import java.util.UUID;
handleKick(UUIDHandler.getPlayer(uuid), plot);
} else {
for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) {
// Ignore plot-owners
if (plot.isOwner(plotPlayer.getUUID())) {
continue;
}
handleKick(plotPlayer, plot);
}
}