File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/io/github/simplex/luck Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
33}
44
55group = ' io.github.simplex'
6- version = ' Beta-20220422-SNAPSHOT '
6+ version = ' Beta-1.0-RC01 '
77
88repositories {
99 mavenCentral()
Original file line number Diff line number Diff line change @@ -68,9 +68,11 @@ private void loadPlayerConfigurations() {
6868
6969 private void registerListeners () {
7070 try {
71- Class <?>[] listeners = SneakyWorker .getClasses ("io.github.simplex.luck.listener" );
71+ Class <?>[] listeners = SneakyWorker .getClasses (AbstractListener . class . getPackage (). getName () );
7272 Arrays .stream (listeners ).forEach (l -> {
7373 if (AbstractListener .class .isAssignableFrom (l )) {
74+ if (l .equals (AbstractListener .class )) return ;
75+
7476 SneakyWorker .sneakyTry (() -> l .getDeclaredConstructor (FeelingLucky .class ).newInstance (this ));
7577 }
7678 });
You can’t perform that action at this time.
0 commit comments