mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-08 05:23:01 +00:00
Fixed setup command
This commit is contained in:
parent
5e2313a6cb
commit
702e2bf975
9 changed files with 86 additions and 44 deletions
|
@ -125,9 +125,9 @@ import org.bukkit.entity.Player;
|
|||
return false;
|
||||
}
|
||||
final int diff = PlayerFunctions.getPlayerPlotCount(world, plr) - PlayerFunctions.getAllowedPlots(plr);
|
||||
if ((diff + (size_x * size_z)) >= 0) {
|
||||
if ((diff + (size_x * size_z)) > 0) {
|
||||
if (diff < 0) {
|
||||
PlayerFunctions.sendMessage(plr, C.CANT_CLAIM_MORE_PLOTS_NUM, (-diff - 1) + "");
|
||||
PlayerFunctions.sendMessage(plr, C.CANT_CLAIM_MORE_PLOTS_NUM, (-diff) + "");
|
||||
} else {
|
||||
PlayerFunctions.sendMessage(plr, C.CANT_CLAIM_MORE_PLOTS);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue