aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-07-09 22:07:10 +0200
committerhackthetime <l4bg0jb7@duck.com>2023-09-05 08:21:45 +0200
commit0baa0083e23e1b41bfaacd8ee8c38959b966a9dd (patch)
tree5310c9b2a618d6563c431c9b9276f8399e04163c
parent108ebcb6d1b6a9fe9fff1fe3fbd18e8208968f6e (diff)
downloadBBsentials-0baa0083e23e1b41bfaacd8ee8c38959b966a9dd.tar.gz
BBsentials-0baa0083e23e1b41bfaacd8ee8c38959b966a9dd.tar.bz2
BBsentials-0baa0083e23e1b41bfaacd8ee8c38959b966a9dd.zip
Added and modified things related to the BBsentials Server
-rw-r--r--.gitignore1
-rw-r--r--run/config/indium-renderer.properties5
-rw-r--r--run/config/iris.properties8
-rw-r--r--src/main/java/de/hype/bbsentials/client/Commands.java22
4 files changed, 35 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 933f011..9508ccd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,3 +46,4 @@
/run/usercache.json
/run/config/zoomify.json
/run/.fabric/processedMods/
+/run/.fabric/tmp/*
diff --git a/run/config/indium-renderer.properties b/run/config/indium-renderer.properties
new file mode 100644
index 0000000..f9695b7
--- /dev/null
+++ b/run/config/indium-renderer.properties
@@ -0,0 +1,5 @@
+#Indium properties file
+#Sun Jul 09 21:16:16 CEST 2023
+fix-exterior-vertex-lighting=auto
+ambient-occlusion-mode=auto
+always-tesselate-blocks=auto
diff --git a/run/config/iris.properties b/run/config/iris.properties
new file mode 100644
index 0000000..8138411
--- /dev/null
+++ b/run/config/iris.properties
@@ -0,0 +1,8 @@
+#This file stores configuration options for Iris, such as the currently active shaderpack
+#Sun Jul 09 21:16:16 CEST 2023
+colorSpace=SRGB
+disableUpdateMessage=false
+enableDebugOptions=false
+maxShadowRenderDistance=32
+shaderPack=
+enableShaders=true
diff --git a/src/main/java/de/hype/bbsentials/client/Commands.java b/src/main/java/de/hype/bbsentials/client/Commands.java
index 6ec133e..305d626 100644
--- a/src/main/java/de/hype/bbsentials/client/Commands.java
+++ b/src/main/java/de/hype/bbsentials/client/Commands.java
@@ -10,6 +10,7 @@ import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import de.hype.bbsentials.api.Discord;
import de.hype.bbsentials.chat.Chat;
+import de.hype.bbsentials.communication.BBsentialConnection;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
@@ -35,6 +36,7 @@ import java.util.ArrayList;
import java.util.List;
import static de.hype.bbsentials.chat.Chat.*;
+import static de.hype.bbsentials.client.BBsentials.bbserver;
import static de.hype.bbsentials.client.BBsentials.getConfig;
public class Commands {
@@ -285,6 +287,24 @@ public class Commands {
)
)
);
- });
+ }); /*chchest*/
+ ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
+ dispatcher.register(
+ ClientCommandManager.literal("bbserver")
+ .then(ClientCommandManager.argument("Message", StringArgumentType.greedyString())
+ .executes((context) -> {
+ String message = StringArgumentType.getString(context, "Message");
+ if (message.equals("bb:reconnect")) {
+ BBsentials.bbserver = new BBsentialConnection();
+ bbserver.connect(getConfig().getBBServerURL(),5000);
+ }
+ else {
+ BBsentials.bbserver.sendMessage(message); }
+ return 1;
+ })
+ )
+ );
+ }
+ );
}
} \ No newline at end of file