Fixed plot permissions never working.

This commit is contained in:
Roman Alexander 2015-03-11 11:08:51 -04:00
parent 044abeaee9
commit e016cb5c85
5 changed files with 7 additions and 7 deletions

View file

@ -120,7 +120,7 @@ public class Auto extends SubCommand {
return false;
}
final int currentPlots = MainUtil.getPlayerPlotCount(world, plr);
final int diff = currentPlots - MainUtil.getAllowedPlots(plr, currentPlots);
final int diff = currentPlots - MainUtil.getAllowedPlots(plr);
if ((diff + (size_x * size_z)) > 0) {
if (diff < 0) {
MainUtil.sendMessage(plr, C.CANT_CLAIM_MORE_PLOTS_NUM, (-diff) + "");