Removed some null checks and fixed some variable names

This commit is contained in:
MattBDev
2019-05-22 14:40:56 -04:00
parent e4c1ba3edf
commit 6b0fcc8712
9 changed files with 27 additions and 49 deletions

View File

@ -410,9 +410,7 @@ public enum BBC {
*/
BBC(final String d, final boolean prefix, final String cat) {
this.d = d;
if (this.s == null) {
this.s = d;
}
this.s = d;
this.prefix = prefix;
this.cat = cat.toLowerCase();
}
@ -559,11 +557,7 @@ public enum BBC {
Method method = actor.getClass().getMethod("print", String.class);
method.setAccessible(true);
method.invoke(actor, (PREFIX.isEmpty() ? "" : PREFIX.s() + " ") + this.format(args));
} catch (NoSuchMethodException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
e.printStackTrace();
}
}