*just pushing my current changes so that i can start fresh on recoding custom item serialization stuff*

This commit is contained in:
NewGarbo 2015-11-24 22:49:28 +00:00
parent 31afe9f886
commit 81c2d2a11f
3 changed files with 5 additions and 2 deletions

View File

@ -335,6 +335,7 @@ public class GearManager extends MiniPlugin implements IPacketHandler, Runnable
public static CustomItem parseItem(ItemStack item)
{
String serialization = getItemSerialization(item);
if (serialization!=null)System.out.println("<-GearManager-> serialization string: " + serialization);
if (serialization != null)
{
@ -344,6 +345,8 @@ public class GearManager extends MiniPlugin implements IPacketHandler, Runnable
try
{
customItem = deserialize(serialization);
System.out.println("<-GearManager-> deserialized item successfully");
}
catch (Exception exception)
{

View File

@ -12,7 +12,7 @@ public class GearCommand extends CommandBase<GearManager>
public GearCommand(GearManager plugin)
{
super(plugin, Rank.ADMIN, "gear", "custom-gear");
super(plugin, Rank.ADMIN, new Rank[]{Rank.JNR_DEV}, "gear", "custom-gear");
_gearManager = plugin;
}

View File

@ -324,7 +324,7 @@ public class GearPage extends ShopPageBase<GearManager, GearShop>
{
stageTitle = "Select Armor Type";
int[] indices = UtilUI.getIndicesFor(_armorTypes.size(), 1, 4);
int[] indices = UtilUI.getIndicesFor(_armorTypes.size(), 1, 4, 0);
int index = 0;
for (final Material type : _armorTypes)