mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-14 12:58:03 +00:00
Fix incorrect plot count being used in setowner
This commit is contained in:
parent
e93634622c
commit
04df6cefe2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue