Implement basic ban command

This commit is contained in:
2022-12-26 02:40:14 +01:00
parent 420666eab1
commit 35b2c8fb42
9 changed files with 235 additions and 93 deletions

View File

@@ -242,7 +242,7 @@ public class Cache
try {
Field field = Color.class.getField(colorName);
color = (Color)field.get(null);
} catch (Exception e) {
} catch (RuntimeException | NoSuchFieldException | IllegalAccessException e) {
logger.log("Unknown color: " + colorName);
}
return color == null ? defaultColor : color;