diff --git a/src/com/songoda/ultimatekits/Lang.java b/src/com/songoda/ultimatekits/Lang.java new file mode 100644 index 0000000..ee24111 Binary files /dev/null and b/src/com/songoda/ultimatekits/Lang.java differ diff --git a/src/com/songoda/ultimatekits/References.java b/src/com/songoda/ultimatekits/References.java new file mode 100644 index 0000000..578be1d Binary files /dev/null and b/src/com/songoda/ultimatekits/References.java differ diff --git a/src/com/songoda/ultimatekits/UltimateKits.java b/src/com/songoda/ultimatekits/UltimateKits.java new file mode 100644 index 0000000..666854a Binary files /dev/null and b/src/com/songoda/ultimatekits/UltimateKits.java differ diff --git a/src/com/songoda/ultimatekits/api/Update.java b/src/com/songoda/ultimatekits/api/Update.java new file mode 100644 index 0000000..d39893d Binary files /dev/null and b/src/com/songoda/ultimatekits/api/Update.java differ diff --git a/src/com/songoda/ultimatekits/conversion/Convert.java b/src/com/songoda/ultimatekits/conversion/Convert.java new file mode 100644 index 0000000..168eb46 Binary files /dev/null and b/src/com/songoda/ultimatekits/conversion/Convert.java differ diff --git a/src/com/songoda/ultimatekits/conversion/Hook.java b/src/com/songoda/ultimatekits/conversion/Hook.java new file mode 100644 index 0000000..d4c8d70 Binary files /dev/null and b/src/com/songoda/ultimatekits/conversion/Hook.java differ diff --git a/src/com/songoda/ultimatekits/conversion/hooks/DefaultHook.java b/src/com/songoda/ultimatekits/conversion/hooks/DefaultHook.java new file mode 100644 index 0000000..12170fc Binary files /dev/null and b/src/com/songoda/ultimatekits/conversion/hooks/DefaultHook.java differ diff --git a/src/com/songoda/ultimatekits/conversion/hooks/EssentialsHook.java b/src/com/songoda/ultimatekits/conversion/hooks/EssentialsHook.java new file mode 100644 index 0000000..1ff734f Binary files /dev/null and b/src/com/songoda/ultimatekits/conversion/hooks/EssentialsHook.java differ diff --git a/src/com/songoda/ultimatekits/conversion/hooks/UltimateCoreHook.java b/src/com/songoda/ultimatekits/conversion/hooks/UltimateCoreHook.java new file mode 100644 index 0000000..400dba0 Binary files /dev/null and b/src/com/songoda/ultimatekits/conversion/hooks/UltimateCoreHook.java differ diff --git a/src/com/songoda/ultimatekits/events/BlockListeners.java b/src/com/songoda/ultimatekits/events/BlockListeners.java new file mode 100644 index 0000000..b2f8ce9 Binary files /dev/null and b/src/com/songoda/ultimatekits/events/BlockListeners.java differ diff --git a/src/com/songoda/ultimatekits/events/ChatListeners.java b/src/com/songoda/ultimatekits/events/ChatListeners.java new file mode 100644 index 0000000..9d6586a Binary files /dev/null and b/src/com/songoda/ultimatekits/events/ChatListeners.java differ diff --git a/src/com/songoda/ultimatekits/events/EntityListeners.java b/src/com/songoda/ultimatekits/events/EntityListeners.java new file mode 100644 index 0000000..131d66f Binary files /dev/null and b/src/com/songoda/ultimatekits/events/EntityListeners.java differ diff --git a/src/com/songoda/ultimatekits/events/InteractListeners.java b/src/com/songoda/ultimatekits/events/InteractListeners.java new file mode 100644 index 0000000..925f201 Binary files /dev/null and b/src/com/songoda/ultimatekits/events/InteractListeners.java differ diff --git a/src/com/songoda/ultimatekits/events/InventoryListeners.java b/src/com/songoda/ultimatekits/events/InventoryListeners.java new file mode 100644 index 0000000..0aae68a Binary files /dev/null and b/src/com/songoda/ultimatekits/events/InventoryListeners.java differ diff --git a/src/com/songoda/ultimatekits/events/QuitListeners.java b/src/com/songoda/ultimatekits/events/QuitListeners.java new file mode 100644 index 0000000..219eb6e Binary files /dev/null and b/src/com/songoda/ultimatekits/events/QuitListeners.java differ diff --git a/src/com/songoda/ultimatekits/handlers/CommandHandler.java b/src/com/songoda/ultimatekits/handlers/CommandHandler.java new file mode 100644 index 0000000..f3a46d6 Binary files /dev/null and b/src/com/songoda/ultimatekits/handlers/CommandHandler.java differ diff --git a/src/com/songoda/ultimatekits/handlers/DisplayItemHandler.java b/src/com/songoda/ultimatekits/handlers/DisplayItemHandler.java new file mode 100644 index 0000000..99e1551 Binary files /dev/null and b/src/com/songoda/ultimatekits/handlers/DisplayItemHandler.java differ diff --git a/src/com/songoda/ultimatekits/handlers/HologramHandler.java b/src/com/songoda/ultimatekits/handlers/HologramHandler.java new file mode 100644 index 0000000..e83b429 Binary files /dev/null and b/src/com/songoda/ultimatekits/handlers/HologramHandler.java differ diff --git a/src/com/songoda/ultimatekits/handlers/ParticleHandler.java b/src/com/songoda/ultimatekits/handlers/ParticleHandler.java new file mode 100644 index 0000000..3d34158 Binary files /dev/null and b/src/com/songoda/ultimatekits/handlers/ParticleHandler.java differ diff --git a/src/com/songoda/ultimatekits/kits/BlockEditor.java b/src/com/songoda/ultimatekits/kits/BlockEditor.java new file mode 100644 index 0000000..d2bfa5b Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/BlockEditor.java differ diff --git a/src/com/songoda/ultimatekits/kits/Buy.java b/src/com/songoda/ultimatekits/kits/Buy.java new file mode 100644 index 0000000..fa6299b Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/Buy.java differ diff --git a/src/com/songoda/ultimatekits/kits/Editor.java b/src/com/songoda/ultimatekits/kits/Editor.java new file mode 100644 index 0000000..2d7b8bf Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/Editor.java differ diff --git a/src/com/songoda/ultimatekits/kits/KitsGUI.java b/src/com/songoda/ultimatekits/kits/KitsGUI.java new file mode 100644 index 0000000..53b0438 Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/KitsGUI.java differ diff --git a/src/com/songoda/ultimatekits/kits/object/Key.java b/src/com/songoda/ultimatekits/kits/object/Key.java new file mode 100644 index 0000000..b28a3df --- /dev/null +++ b/src/com/songoda/ultimatekits/kits/object/Key.java @@ -0,0 +1,6 @@ +package com.songoda.ultimatekits.kits.object; + +public class keyData { + + String name = ""; +} diff --git a/src/com/songoda/ultimatekits/kits/object/KeyManager.java b/src/com/songoda/ultimatekits/kits/object/KeyManager.java new file mode 100644 index 0000000..2947360 --- /dev/null +++ b/src/com/songoda/ultimatekits/kits/object/KeyManager.java @@ -0,0 +1,4 @@ +package com.songoda.ultimatekits.kits.object; + +public class KeyManager { +} diff --git a/src/com/songoda/ultimatekits/kits/object/Kit.java b/src/com/songoda/ultimatekits/kits/object/Kit.java new file mode 100644 index 0000000..791264b Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/object/Kit.java differ diff --git a/src/com/songoda/ultimatekits/kits/object/KitBlockData.java b/src/com/songoda/ultimatekits/kits/object/KitBlockData.java new file mode 100644 index 0000000..dc0856a Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/object/KitBlockData.java differ diff --git a/src/com/songoda/ultimatekits/kits/object/KitManager.java b/src/com/songoda/ultimatekits/kits/object/KitManager.java new file mode 100644 index 0000000..bce3511 Binary files /dev/null and b/src/com/songoda/ultimatekits/kits/object/KitManager.java differ diff --git a/src/com/songoda/ultimatekits/utils/ConfigWrapper.java b/src/com/songoda/ultimatekits/utils/ConfigWrapper.java new file mode 100644 index 0000000..9d742d7 Binary files /dev/null and b/src/com/songoda/ultimatekits/utils/ConfigWrapper.java differ diff --git a/src/com/songoda/ultimatekits/utils/Debugger.java b/src/com/songoda/ultimatekits/utils/Debugger.java new file mode 100644 index 0000000..ee46754 Binary files /dev/null and b/src/com/songoda/ultimatekits/utils/Debugger.java differ diff --git a/src/com/songoda/ultimatekits/utils/Methods.java b/src/com/songoda/ultimatekits/utils/Methods.java new file mode 100644 index 0000000..224a935 Binary files /dev/null and b/src/com/songoda/ultimatekits/utils/Methods.java differ diff --git a/src/com/songoda/ultimatekits/utils/ReflUtil.java b/src/com/songoda/ultimatekits/utils/ReflUtil.java new file mode 100644 index 0000000..c32c596 --- /dev/null +++ b/src/com/songoda/ultimatekits/utils/ReflUtil.java @@ -0,0 +1,208 @@ +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + +package com.songoda.ultimatekits.utils; + +import com.google.common.collect.HashBasedTable; +import com.google.common.collect.Table; +import java.lang.reflect.Constructor; +import java.lang.reflect.Field; +import java.lang.reflect.Method; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.bukkit.Bukkit; + +public class ReflUtil { + private static String nmsVersion; + private static Map> classCache = new HashMap(); + private static Table, String, Method> methodCache = HashBasedTable.create(); + private static Table, ReflUtil.MethodParams, Method> methodParamCache = HashBasedTable.create(); + private static Table, String, Field> fieldCache = HashBasedTable.create(); + private static Map, Constructor> constructorCache = new HashMap(); + private static Table, ReflUtil.ConstructorParams, Constructor> constructorParamCache = HashBasedTable.create(); + + public ReflUtil() { + } + + public static String getNMSVersion() { + if (nmsVersion == null) { + String name = Bukkit.getServer().getClass().getName(); + String[] parts = name.split("\\."); + nmsVersion = parts[3]; + } + + return nmsVersion; + } + + public static Class getNMSClass(String className) { + return getClassCached("net.minecraft.server." + getNMSVersion() + "." + className); + } + + public static Class getOBCClass(String className) { + return getClassCached("org.bukkit.craftbukkit." + getNMSVersion() + "." + className); + } + + public static Class getClassCached(String className) { + if (classCache.containsKey(className)) { + return (Class)classCache.get(className); + } else { + try { + Class classForName = Class.forName(className); + classCache.put(className, classForName); + return classForName; + } catch (ClassNotFoundException var2) { + return null; + } + } + } + + public static Method getMethodCached(Class clazz, String methodName) { + if (methodCache.contains(clazz, methodName)) { + return (Method)methodCache.get(clazz, methodName); + } else { + try { + Method method = clazz.getDeclaredMethod(methodName); + method.setAccessible(true); + methodCache.put(clazz, methodName, method); + return method; + } catch (NoSuchMethodException var3) { + return null; + } + } + } + + public static Method getMethodCached(Class clazz, String methodName, Class... params) { + ReflUtil.MethodParams methodParams = new ReflUtil.MethodParams(methodName, params); + if (methodParamCache.contains(clazz, methodParams)) { + return (Method)methodParamCache.get(clazz, methodParams); + } else { + try { + Method method = clazz.getDeclaredMethod(methodName, params); + method.setAccessible(true); + methodParamCache.put(clazz, methodParams, method); + return method; + } catch (NoSuchMethodException var5) { + return null; + } + } + } + + public static Field getFieldCached(Class clazz, String fieldName) { + if (fieldCache.contains(clazz, fieldName)) { + return (Field)fieldCache.get(clazz, fieldName); + } else { + try { + Field field = clazz.getDeclaredField(fieldName); + field.setAccessible(true); + fieldCache.put(clazz, fieldName, field); + return field; + } catch (NoSuchFieldException var3) { + return null; + } + } + } + + public static Constructor getConstructorCached(Class clazz) { + if (constructorCache.containsKey(clazz)) { + return (Constructor)constructorCache.get(clazz); + } else { + try { + Constructor constructor = clazz.getDeclaredConstructor(); + constructor.setAccessible(true); + constructorCache.put(clazz, constructor); + return constructor; + } catch (NoSuchMethodException var2) { + return null; + } + } + } + + public static Constructor getConstructorCached(Class clazz, Class... params) { + ReflUtil.ConstructorParams constructorParams = new ReflUtil.ConstructorParams(params); + if (constructorParamCache.contains(clazz, constructorParams)) { + return (Constructor)constructorParamCache.get(clazz, constructorParams); + } else { + try { + Constructor constructor = clazz.getDeclaredConstructor(params); + constructor.setAccessible(true); + constructorParamCache.put(clazz, constructorParams, constructor); + return constructor; + } catch (NoSuchMethodException var4) { + return null; + } + } + } + + private static class ConstructorParams { + private final Class[] params; + + public ConstructorParams(Class[] params) { + this.params = params; + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } else if (o != null && this.getClass() == o.getClass()) { + ReflUtil.ConstructorParams that = (ReflUtil.ConstructorParams)o; + return Arrays.deepEquals(this.params, that.params); + } else { + return false; + } + } + + public int hashCode() { + return Arrays.deepHashCode(this.params); + } + } + + private static class MethodParams { + private final String name; + private final Class[] params; + + public MethodParams(String name, Class[] params) { + this.name = name; + this.params = params; + } + + public boolean equals(Object o) { + if (o == this) { + return true; + } else if (!(o instanceof ReflUtil.MethodParams)) { + return false; + } else { + ReflUtil.MethodParams that = (ReflUtil.MethodParams)o; + if (!that.canEqual(this)) { + return false; + } else { + Object thisName = this.name; + Object thatName = that.name; + if (thisName == null) { + if (thatName == null) { + return Arrays.deepEquals(this.params, that.params); + } + } else if (thisName.equals(thatName)) { + return Arrays.deepEquals(this.params, that.params); + } + + return false; + } + } + } + + boolean canEqual(Object that) { + return that instanceof ReflUtil.MethodParams; + } + + public int hashCode() { + int result = 1; + Object thisName = this.name; + result = result * 31 + (thisName == null ? 0 : thisName.hashCode()); + result = result * 31 + Arrays.deepHashCode(this.params); + return result; + } + } +} diff --git a/src/com/songoda/ultimatekits/utils/SettingsManager.java b/src/com/songoda/ultimatekits/utils/SettingsManager.java new file mode 100644 index 0000000..b9cd016 Binary files /dev/null and b/src/com/songoda/ultimatekits/utils/SettingsManager.java differ