Cleanup and fixes

Actually registers 1.11 stuff now;
Stop bad habit of "catch (Exception ex)" in ReflectionUtils.class;
Add "Bow Shoot" pathfinder goal;
Dropped support for WorldGuard 6.1 and below. Please update to
WorldGuard 6.2.
This commit is contained in:
TheBukor
2016-12-02 17:08:01 -02:00
parent 5d75ab5dba
commit f784116a82
5 changed files with 107 additions and 103 deletions

View File

@@ -40,7 +40,7 @@ public class ReflectionUtils {
f = clazz.getDeclaredField(field);
f.setAccessible(true);
obj = f.get(object);
} catch (Exception ex) {
} catch (IllegalAccessException | NoSuchFieldException ex) {
ex.printStackTrace();
}
return obj;
@@ -52,7 +52,7 @@ public class ReflectionUtils {
f = clazz.getDeclaredField(field);
f.setAccessible(true);
f.set(object, toSet);
} catch (Exception ex) {
} catch (IllegalAccessException | IllegalArgumentException | NoSuchFieldException ex) {
ex.printStackTrace();
}
}
@@ -62,7 +62,7 @@ public class ReflectionUtils {
try {
constr = clazz.getDeclaredConstructor(params);
constr.setAccessible(true);
} catch (Exception ex) {
} catch (NoSuchMethodException | SecurityException ex) {
ex.printStackTrace();
}
return constr;