diff --git a/src/main/java/me/zeroeightsix/kami/module/Module.java b/src/main/java/me/zeroeightsix/kami/module/Module.java index a4956534..0e4f2144 100644 --- a/src/main/java/me/zeroeightsix/kami/module/Module.java +++ b/src/main/java/me/zeroeightsix/kami/module/Module.java @@ -21,6 +21,7 @@ import java.util.List; /** * Created by 086 on 23/08/2017. + * Updated by hub on 3 November 2019 */ public class Module { @@ -41,7 +42,10 @@ public class Module { } private Info getAnnotation() { - return getClass().isAnnotationPresent(Info.class) ? getClass().getAnnotation(Info.class) : Sprint.class.getAnnotation(Info.class); // dummy annotation + if (getClass().isAnnotationPresent(Info.class)) { + return getClass().getAnnotation(Info.class); + } + throw new IllegalStateException("No Annotation on class " + this.getClass().getCanonicalName() + "!"); } public void onUpdate() {}