summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/keuin/crosslink/BungeeMain.java24
-rw-r--r--src/main/java/com/keuin/crosslink/VelocityMain.java21
2 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/crosslink/BungeeMain.java b/src/main/java/com/keuin/crosslink/BungeeMain.java
new file mode 100644
index 0000000..01486be
--- /dev/null
+++ b/src/main/java/com/keuin/crosslink/BungeeMain.java
@@ -0,0 +1,24 @@
+package com.keuin.crosslink;
+
+import net.md_5.bungee.api.plugin.Plugin;
+
+import java.util.logging.Logger;
+
+public class BungeeMain extends Plugin {
+
+ private final Logger logger = getLogger();
+
+ @Override
+ public void onLoad() {
+ logger.info("CrossLink is loading in BungeeCord mode.");
+ }
+
+ @Override
+ public void onEnable() {
+ }
+
+ @Override
+ public void onDisable() {
+ }
+
+} \ No newline at end of file
diff --git a/src/main/java/com/keuin/crosslink/VelocityMain.java b/src/main/java/com/keuin/crosslink/VelocityMain.java
new file mode 100644
index 0000000..7123712
--- /dev/null
+++ b/src/main/java/com/keuin/crosslink/VelocityMain.java
@@ -0,0 +1,21 @@
+package com.keuin.crosslink;
+
+import com.google.inject.Inject;
+import com.velocitypowered.api.plugin.Plugin;
+import com.velocitypowered.api.proxy.ProxyServer;
+import org.slf4j.Logger;
+
+@Plugin(id = "crosslink", name = "CrossLink", version = "1.0-SNAPSHOT",
+ description = "Link your grouped servers with external world.", authors = {"Keuin"})
+public class VelocityMain {
+ private final ProxyServer server;
+ private final Logger logger;
+
+ @Inject
+ public VelocityMain(ProxyServer server, Logger logger) {
+ this.server = server;
+ this.logger = logger;
+
+ logger.info("CrossLink is loading in Velocity mode.");
+ }
+} \ No newline at end of file