summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java b/src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java
new file mode 100644
index 0000000..684ec07
--- /dev/null
+++ b/src/main/java/com/keuin/kbackupfabric/KBPluginInitializer.java
@@ -0,0 +1,12 @@
+package com.keuin.kbackupfabric;
+
+import net.fabricmc.api.ModInitializer;
+import net.fabricmc.fabric.api.registry.CommandRegistry;
+
+public class KBPluginInitializer implements ModInitializer {
+ @Override
+ public void onInitialize() {
+ System.out.println("Initializing KBackup...");
+ CommandRegistry.INSTANCE.register(false, KBCommandRegister::register);
+ }
+}