aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/ftbsc/bscv/BoSCoVicino.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/bscv/BoSCoVicino.java b/src/main/java/ftbsc/bscv/BoSCoVicino.java
index 79dc3d9..6c06c42 100644
--- a/src/main/java/ftbsc/bscv/BoSCoVicino.java
+++ b/src/main/java/ftbsc/bscv/BoSCoVicino.java
@@ -127,6 +127,19 @@ public class BoSCoVicino implements ICommons {
}
})
);
+
+ dispatcher.register(
+ Commands.literal("toggle-all")
+ .executes(ctx -> {
+ for (Module mod : BoSCoVicino.mods) {
+ if (mod.enabled.get()) {
+ mod.disable();
+ mod.enable();
+ }
+ }
+ return 1;
+ })
+ );
}
@SubscribeEvent