Add ability to change vault size (buggy, fix permissions later)

This commit is contained in:
gomeow
2013-06-13 00:01:00 -07:00
parent b832fa839f
commit 1635a84952
4 changed files with 18 additions and 10 deletions
@@ -72,8 +72,8 @@ public class Serialization {
return result;
}
public static Inventory toInventory(List<String> stringItems, int number) {
Inventory inv = Bukkit.createInventory(null, 54, ChatColor.RED + "Vault #" + number);
public static Inventory toInventory(List<String> stringItems, int number, boolean large) {
Inventory inv = Bukkit.createInventory(null, (large) ? 54 : 27, ChatColor.RED + "Vault #" + number);
List<ItemStack> contents = new ArrayList<ItemStack>();
for(String piece:stringItems) {
if (piece.equalsIgnoreCase("null")) {