compare UUID to UUID, not UUIDMapping

fix PS-182
This commit is contained in:
dordsor21 2020-12-14 14:32:34 +00:00
parent 6d71177394
commit 5e88cabb4b
No known key found for this signature in database
GPG key ID: 1E53E88969FFCF0B

View file

@ -95,7 +95,7 @@ public class Deny extends SubCommand {
} }
plot.addDenied(uuidMapping.getUuid()); plot.addDenied(uuidMapping.getUuid());
PlotSquared.get().getEventDispatcher().callDenied(player, plot, uuidMapping.getUuid(), true); PlotSquared.get().getEventDispatcher().callDenied(player, plot, uuidMapping.getUuid(), true);
if (!uuidMapping.equals(DBFunc.EVERYONE)) { if (!uuidMapping.getUuid().equals(DBFunc.EVERYONE)) {
handleKick(PlotSquared.imp().getPlayerManager().getPlayerIfExists(uuidMapping.getUuid()), plot); handleKick(PlotSquared.imp().getPlayerManager().getPlayerIfExists(uuidMapping.getUuid()), plot);
} else { } else {
for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) { for (PlotPlayer plotPlayer : plot.getPlayersInPlot()) {