From 04df6cefe2109a100bf8a6c843a9129a774cc2bf Mon Sep 17 00:00:00 2001 From: Byteflux Date: Tue, 14 Apr 2015 11:13:16 -0700 Subject: [PATCH] Fix incorrect plot count being used in setowner --- .../java/com/intellectualcrafters/plot/commands/SetOwner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/SetOwner.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/SetOwner.java index 7c58b275f..e5f289226 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/SetOwner.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/SetOwner.java @@ -76,7 +76,7 @@ public class SetOwner extends SubCommand { else { if (!Permissions.hasPermission(plr, "plots.admin.command.setowner")) { int size = plots.size(); - final int currentPlots = (Settings.GLOBAL_LIMIT ? MainUtil.getPlayerPlotCount(plr) : MainUtil.getPlayerPlotCount(loc.getWorld(), plr)) + size; + final int currentPlots = (Settings.GLOBAL_LIMIT ? MainUtil.getPlayerPlotCount(other) : MainUtil.getPlayerPlotCount(loc.getWorld(), other)) + size; if (currentPlots > MainUtil.getAllowedPlots(other)) { sendMessage(plr, C.CANT_TRANSFER_MORE_PLOTS); return false;