Merge pull request #2697 from hyWse/v4

Plotowner are kicked at "/p deny *" themselves
This commit is contained in:
Alexander Söderberg 2020-02-23 22:48:23 +01:00 committed by GitHub
commit 955dd04dd6
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); handleKick(UUIDHandler.getPlayer(uuid), plot);
} else { } else {
for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) { for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) {
// Ignore plot-owners
if (plot.isAdded(plotPlayer.getUUID())) {
continue;
}
handleKick(plotPlayer, plot); handleKick(plotPlayer, plot);
} }
} }