Read desc
Changed config methods to DisguiseConfig Added a new config option to blow a disguise
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user