diff --git a/pom.xml b/pom.xml
index 2d1035b..2453cde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -126,6 +126,13 @@
system
${basedir}/libs/1_8_R3.jar
+
+ bungeecord
+ bungeecord
+ 1
+ system
+ ${basedir}/libs/BungeeCord.jar
+
com.sun.tools
jshell
diff --git a/src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java b/src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java
index b520d7d..95ef971 100644
--- a/src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java
+++ b/src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java
@@ -19,9 +19,7 @@ import java.util.function.Consumer;
*/
public class TConfigWatcher {
- private final ScheduledExecutorService service = Executors.newScheduledThreadPool(1,
- new BasicThreadFactory.Builder().namingPattern("TConfigWatcherService-%d").build());
-
+ private final ScheduledExecutorService service = Executors.newScheduledThreadPool(1, new BasicThreadFactory.Builder().namingPattern("TConfigWatcherService-%d").build());
private final Map>> map = new HashMap<>();
public TConfigWatcher() {
@@ -42,6 +40,10 @@ public class TConfigWatcher {
}, 1000, 100, TimeUnit.MILLISECONDS);
}
+ public void addSimpleListener(File file, Runnable runnable) {
+ addListener(file, null, obj -> runnable.run());
+ }
+
public void addOnListen(File file, Object obj, Consumer