Started working on a plot info inventory

This commit is contained in:
Sauilitired 2014-11-18 23:17:55 +01:00
parent 69b8f6080b
commit f555f194e1
2 changed files with 104 additions and 0 deletions

View file

@ -24,6 +24,7 @@ package com.intellectualcrafters.plot.commands;
import com.intellectualcrafters.plot.PlotMain;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.database.DBFunc;
import com.intellectualcrafters.plot.object.InfoInventory;
import com.intellectualcrafters.plot.object.Plot;
import com.intellectualcrafters.plot.object.PlotId;
import com.intellectualcrafters.plot.object.PlotWorld;
@ -91,6 +92,11 @@ public class Info extends SubCommand {
}
}
if (args.length == 1 && args[0].equalsIgnoreCase("inv")) {
new InfoInventory(plot, player).build().display();
return true;
}
final boolean hasOwner = plot.hasOwner();
boolean containsEveryone;
boolean trustedEveryone;