diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | run/config/indium-renderer.properties | 5 | ||||
-rw-r--r-- | run/config/iris.properties | 8 | ||||
-rw-r--r-- | src/main/java/de/hype/bbsentials/client/Commands.java | 22 |
4 files changed, 35 insertions, 1 deletions
@@ -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 |