Read desc

Changed config methods to DisguiseConfig
Added a new config option to blow a disguise
This commit is contained in:
libraryaddict
2014-01-21 06:01:49 +13:00
parent ff6567ba23
commit 38ee3dc983
11 changed files with 241 additions and 191 deletions

View File

@@ -55,15 +55,6 @@ public class ReflectionManager {
private static Class itemClass;
private static Field pingField;
public static double getPing(Player player) {
try {
return (double) pingField.getInt(ReflectionManager.getNmsEntity(player));
} catch (Exception ex) {
ex.printStackTrace();
}
return 0D;
}
static {
for (Method method : getNmsClass("EntityLiving").getDeclaredMethods()) {
try {
@@ -252,6 +243,15 @@ public class ReflectionManager {
return null;
}
public static double getPing(Player player) {
try {
return (double) pingField.getInt(ReflectionManager.getNmsEntity(player));
} catch (Exception ex) {
ex.printStackTrace();
}
return 0D;
}
public static float[] getSize(Entity entity) {
try {
float length = getNmsClass("Entity").getField("length").getFloat(getNmsEntity(entity));