aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/CoflSky.java
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-09-22 22:50:20 +0200
committerFlorian Rinke <develop@torui.de>2021-09-22 22:50:20 +0200
commite5e0c9a3a4fd9b2c10464e0f129bcb60b2db0f19 (patch)
tree139bc2d1228387720672749a7adbaacc81558f08 /src/main/java/de/torui/coflsky/CoflSky.java
parentde2ef874edada810845cf902402337cd8809dd12 (diff)
downloadCOFL-e5e0c9a3a4fd9b2c10464e0f129bcb60b2db0f19.tar.gz
COFL-e5e0c9a3a4fd9b2c10464e0f129bcb60b2db0f19.tar.bz2
COFL-e5e0c9a3a4fd9b2c10464e0f129bcb60b2db0f19.zip
.
Diffstat (limited to 'src/main/java/de/torui/coflsky/CoflSky.java')
-rw-r--r--src/main/java/de/torui/coflsky/CoflSky.java23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSky.java b/src/main/java/de/torui/coflsky/CoflSky.java
index 045b0fc..bd5d2c5 100644
--- a/src/main/java/de/torui/coflsky/CoflSky.java
+++ b/src/main/java/de/torui/coflsky/CoflSky.java
@@ -2,8 +2,11 @@ package de.torui.coflsky;
import java.net.URI;
import java.net.URISyntaxException;
+import java.util.UUID;
import de.torui.coflsky.websocket.WSClient;
+import de.torui.coflsky.websocket.WSClientWrapper;
+import net.minecraft.client.Minecraft;
import net.minecraft.init.Blocks;
import net.minecraftforge.client.ClientCommandHandler;
import net.minecraftforge.common.MinecraftForge;
@@ -21,28 +24,38 @@ public class CoflSky
{
public static final String MODID = "CoflSky";
public static final String VERSION = "1.0";
- public static WSClient WS;
+ public static WSClientWrapper Wrapper;
+
+ public static String PlayerUUID = "";
+
@EventHandler
public void init(FMLInitializationEvent event) throws URISyntaxException
{
+
+ //Minecraft.getSessionInfo().forEach((a,b) -> System.out.println("Key=" + a + " value=" + b));
+
// some example code
System.out.println("Initializing");
//new Thread(new WSClient(new URI("ws://localhost:8080"))).start();
System.out.println(">>>Started");
- ClientCommandHandler.instance.registerCommand(new CoflSkyCommand());
- MinecraftForge.EVENT_BUS.register(new EventRegistry());
+
+ CoflSky.Wrapper = new WSClientWrapper("wss://sky-commands.coflnet.com/modsocket?uuid=");
+
+ if(event.getSide() == Side.CLIENT)
+ ClientCommandHandler.instance.registerCommand(new CoflSkyCommand());
+ MinecraftForge.EVENT_BUS.register(new EventRegistry());
}
- @EventHandler
+ /* @EventHandler
public void init(FMLServerStartingEvent event)
{
if(event.getSide() == Side.CLIENT) return;
//event.registerServerCommand(new CoflSkyCommand());
- }
+ }*/
}
\ No newline at end of file