summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java
diff options
context:
space:
mode:
authorMerrg1n <[email protected]>2022-08-13 22:36:35 +0800
committerMerrg1n <[email protected]>2022-08-14 01:42:37 +0800
commit94f092015a05d0179e307468c717ad391e455742 (patch)
tree1e90e0462e8bc2a6d4ae4131808b655089db72a9 /src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java
parent323226a7956b2dc1d56c56e63bc9354e2b8bd244 (diff)
carpet ext
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java')
-rw-r--r--src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java b/src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java
new file mode 100644
index 0000000..e820fd6
--- /dev/null
+++ b/src/main/java/com/keuin/ohmyvanillamc/OmvmExtension.java
@@ -0,0 +1,26 @@
+package com.keuin.ohmyvanillamc;
+
+import carpet.CarpetExtension;
+import carpet.CarpetServer;
+
+public class OmvmExtension implements CarpetExtension {
+ private static final OmvmExtension INSTANCE = new OmvmExtension();
+
+ public static OmvmExtension getInstance() {
+ return INSTANCE;
+ }
+
+ public static void initialize() {
+ CarpetServer.manageExtension(INSTANCE);
+ }
+
+ @Override
+ public void onGameStarted() {
+ CarpetServer.settingsManager.parseSettingsClass(OmvmSettings.class);
+ }
+
+ @Override
+ public String version() {
+ return OhMyVanillaMinecraft.getVersion();
+ }
+}