*just pushing my current changes so that i can start fresh on recoding custom item serialization stuff*
This commit is contained in:
parent
31afe9f886
commit
81c2d2a11f
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user