diff --git a/pom.xml b/pom.xml index 44f744d..cd7cb76 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.asintoto Basic - 1.0.5 + 1.0.6 jar Basic diff --git a/src/main/java/com/asintoto/basic/menu/MenuDataType.java b/src/main/java/com/asintoto/basic/menu/MenuDataType.java index 3bf8d55..9e705bc 100644 --- a/src/main/java/com/asintoto/basic/menu/MenuDataType.java +++ b/src/main/java/com/asintoto/basic/menu/MenuDataType.java @@ -3,26 +3,26 @@ import org.bukkit.persistence.PersistentDataAdapterContext; import org.bukkit.persistence.PersistentDataType; -public class MenuDataType implements PersistentDataType { +public class MenuDataType implements PersistentDataType { @Override - public Class getPrimitiveType() { - return null; + public Class getPrimitiveType() { + return Menu.class; } @Override - public Class getComplexType() { - return null; + public Class getComplexType() { + return Menu.class; } @Override - public T toPrimitive(T t, PersistentDataAdapterContext persistentDataAdapterContext) { - return null; + public Menu toPrimitive(Menu t, PersistentDataAdapterContext persistentDataAdapterContext) { + return t; } @Override - public T fromPrimitive(T t, PersistentDataAdapterContext persistentDataAdapterContext) { - return null; + public Menu fromPrimitive(Menu t, PersistentDataAdapterContext persistentDataAdapterContext) { + return t; } private static final MenuDataType INSTANCE = new MenuDataType();