aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-07-10 22:18:09 +0200
committerhackthetime <l4bg0jb7@duck.com>2023-09-05 08:21:49 +0200
commitee998f5a34e3fff6ddebc24bbcc71ac406e5783b (patch)
treeeecad1003c81ee2e87a57b116779a697845d5d0d
parent0baa0083e23e1b41bfaacd8ee8c38959b966a9dd (diff)
downloadBBsentials-ee998f5a34e3fff6ddebc24bbcc71ac406e5783b.tar.gz
BBsentials-ee998f5a34e3fff6ddebc24bbcc71ac406e5783b.tar.bz2
BBsentials-ee998f5a34e3fff6ddebc24bbcc71ac406e5783b.zip
General Changes again....
-rw-r--r--.gitignore66
-rw-r--r--gradle/wrapper/gradle-wrapper.jarbin0 -> 62076 bytes
-rw-r--r--gradle/wrapper/gradle-wrapper.properties6
-rw-r--r--run/config/indium-renderer.properties2
-rw-r--r--run/config/iris.properties2
-rw-r--r--run/saves/temp/DIM-1/data/raids.datbin90 -> 90 bytes
-rw-r--r--run/saves/temp/DIM1/data/raids_end.datbin90 -> 90 bytes
-rw-r--r--run/saves/temp/advancements/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.json90
-rw-r--r--run/saves/temp/level.dat_oldbin2339 -> 2463 bytes
-rw-r--r--run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.datbin993 -> 1113 bytes
-rw-r--r--run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat_oldbin993 -> 1113 bytes
-rw-r--r--run/saves/temp/region/r.-1.0.mcabin2674688 -> 2674688 bytes
-rw-r--r--run/saves/temp/region/r.0.0.mcabin2572288 -> 2572288 bytes
-rw-r--r--run/usercache.json0
-rw-r--r--src/main/java/de/hype/bbsentials/client/Commands.java310
-rw-r--r--src/main/java/de/hype/bbsentials/client/Commands/command-systewm-new-buggy.zipbin0 -> 3297 bytes
-rw-r--r--src/main/java/de/hype/bbsentials/mixins/SimpleOptionMixin.java1
-rw-r--r--src/main/resources/modid.mixins.json3
18 files changed, 117 insertions, 363 deletions
diff --git a/.gitignore b/.gitignore
index 9508ccd..9a61b96 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,49 +1,19 @@
# Default ignored files
-/run/resourcepacks/
-/run/saves/
-/run/logs/
-/run/data/
-/run/crash-reports/
-/.gradle/
-/build/
-/.idea/
-/gradle/
-/gradle/wrapper
-*tar.gz
-*.zip
-/run/config/NoChatReports/README.md
-/run/config/citresewn-defaults.json
-/run/config/Hype_Client_settings.json
-/run/config/BBsential_settings.json
-/run/.fabric/
-/run/config/capes.json5
-/run/config/chatnotify.json
-/run/config/citresewn.json
-/run/config/entity_model_features.json
-/run/config/entity_texture_features.json
-/run/config/entityculling.json
-/run/config/fabrishot.properties
-/run/config/fsb-interop.json
-/run/config/gamecontrollerdatabase.txt
-/run/config/immediatelyfast.json
-/run/config/fabric/indigo-renderer.properties
-/run/config/isxander-main-menu-credits.json
-/run/config/languagereload.json
-/run/config/lithium.properties
-/run/config/midnightcontrols.json
-/run/config/midnightlib.json
-/run/config/modmenu.json
-/run/config/.puzzle_cache/mojangstudios.png
-/run/config/NoChatReports/NCR-Client.json
-/run/config/NoChatReports/NCR-Common.json
-/run/config/NoChatReports/NCR-ServerPreferences.json
-/run/config/yosbr/options.txt
-/run/options.txt
-/run/config/puzzle.json
-/run/realms_persistence.json
-/run/config/sodium-extra-options.json
-/run/config/symbol-chat.json
-/run/usercache.json
-/run/config/zoomify.json
-/run/.fabric/processedMods/
-/run/.fabric/tmp/*
+*.DS_Store
+.gradle
+.settings
+.project
+.classpath
+build
+out
+run
+bin
+logs
+.github/devbuilds/node_modules
+*.iws
+*.ipr
+*.iml
+.idea/*
+!.idea/copyright/*
+!.idea/scopes/*
+/run/usercache.json \ No newline at end of file
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..c1962a7
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..37aef8d
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
+networkTimeout=10000
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/run/config/indium-renderer.properties b/run/config/indium-renderer.properties
index f9695b7..c7ee8ea 100644
--- a/run/config/indium-renderer.properties
+++ b/run/config/indium-renderer.properties
@@ -1,5 +1,5 @@
#Indium properties file
-#Sun Jul 09 21:16:16 CEST 2023
+#Mon Jul 10 21:39:40 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
index 8138411..39dc9e1 100644
--- a/run/config/iris.properties
+++ b/run/config/iris.properties
@@ -1,5 +1,5 @@
#This file stores configuration options for Iris, such as the currently active shaderpack
-#Sun Jul 09 21:16:16 CEST 2023
+#Mon Jul 10 21:39:41 CEST 2023
colorSpace=SRGB
disableUpdateMessage=false
enableDebugOptions=false
diff --git a/run/saves/temp/DIM-1/data/raids.dat b/run/saves/temp/DIM-1/data/raids.dat
index 07a2946..4be59f0 100644
--- a/run/saves/temp/DIM-1/data/raids.dat
+++ b/run/saves/temp/DIM-1/data/raids.dat
Binary files differ
diff --git a/run/saves/temp/DIM1/data/raids_end.dat b/run/saves/temp/DIM1/data/raids_end.dat
index 07a2946..4be59f0 100644
--- a/run/saves/temp/DIM1/data/raids_end.dat
+++ b/run/saves/temp/DIM1/data/raids_end.dat
Binary files differ
diff --git a/run/saves/temp/advancements/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.json b/run/saves/temp/advancements/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.json
index 2a37164..b587a48 100644
--- a/run/saves/temp/advancements/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.json
+++ b/run/saves/temp/advancements/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.json
@@ -89,5 +89,95 @@
},
"done": true
},
+ "minecraft:recipes/redstone/lever": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/combat/stone_sword": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/decorations/cobblestone_wall": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/tools/stone_pickaxe": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/tools/stone_axe": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:story/mine_stone": {
+ "criteria": {
+ "get_stone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/decorations/furnace": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/building_blocks/cobblestone_slab": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/building_blocks/cobblestone_slab_from_cobblestone_stonecutting": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/building_blocks/stone": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/decorations/cobblestone_wall_from_cobblestone_stonecutting": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/building_blocks/cobblestone_stairs_from_cobblestone_stonecutting": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/building_blocks/cobblestone_stairs": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/tools/stone_hoe": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
+ "minecraft:recipes/tools/stone_shovel": {
+ "criteria": {
+ "has_cobblestone": "2023-07-10 16:46:00 +0200"
+ },
+ "done": true
+ },
"DataVersion": 3465
} \ No newline at end of file
diff --git a/run/saves/temp/level.dat_old b/run/saves/temp/level.dat_old
index 82b4780..0a3b43a 100644
--- a/run/saves/temp/level.dat_old
+++ b/run/saves/temp/level.dat_old
Binary files differ
diff --git a/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat b/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat
index f47cc9d..352d4c3 100644
--- a/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat
+++ b/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat
Binary files differ
diff --git a/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat_old b/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat_old
index 105ca2c..352d4c3 100644
--- a/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat_old
+++ b/run/saves/temp/playerdata/4fa1228c-8dd6-47c4-8fe3-b04b580311b8.dat_old
Binary files differ
diff --git a/run/saves/temp/region/r.-1.0.mca b/run/saves/temp/region/r.-1.0.mca
index 3c02cd6..aca25c0 100644
--- a/run/saves/temp/region/r.-1.0.mca
+++ b/run/saves/temp/region/r.-1.0.mca
Binary files differ
diff --git a/run/saves/temp/region/r.0.0.mca b/run/saves/temp/region/r.0.0.mca
index 845af0e..96a9a52 100644
--- a/run/saves/temp/region/r.0.0.mca
+++ b/run/saves/temp/region/r.0.0.mca
Binary files differ
diff --git a/run/usercache.json b/run/usercache.json
deleted file mode 100644
index e69de29..0000000
--- a/run/usercache.json
+++ /dev/null
diff --git a/src/main/java/de/hype/bbsentials/client/Commands.java b/src/main/java/de/hype/bbsentials/client/Commands.java
deleted file mode 100644
index 305d626..0000000
--- a/src/main/java/de/hype/bbsentials/client/Commands.java
+++ /dev/null
@@ -1,310 +0,0 @@
-package de.hype.bbsentials.client;
-
-import com.mojang.brigadier.StringReader;
-import com.mojang.brigadier.arguments.ArgumentType;
-import com.mojang.brigadier.arguments.IntegerArgumentType;
-import com.mojang.brigadier.arguments.StringArgumentType;
-import com.mojang.brigadier.builder.LiteralArgumentBuilder;
-import com.mojang.brigadier.builder.RequiredArgumentBuilder;
-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;
-import net.minecraft.block.Block;
-import net.minecraft.block.BlockState;
-import net.minecraft.block.ChestBlock;
-import net.minecraft.client.MinecraftClient;
-import net.minecraft.client.network.ClientPlayerEntity;
-import net.minecraft.command.CommandSource;
-import net.minecraft.command.argument.ArgumentTypes;
-import net.minecraft.command.argument.BlockPosArgumentType;
-import net.minecraft.command.argument.MessageArgumentType;
-import net.minecraft.entity.ai.brain.BlockPosLookTarget;
-import net.minecraft.entity.player.PlayerEntity;
-import net.minecraft.server.command.ServerCommandSource;
-import net.minecraft.text.Text;
-import net.minecraft.util.Formatting;
-import net.minecraft.util.hit.BlockHitResult;
-import net.minecraft.util.math.BlockPos;
-
-import java.lang.reflect.InvocationTargetException;
-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 {
- Commands() {
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(ClientCommandManager.literal("hci").then(ClientCommandManager.literal("menu").then(ClientCommandManager.argument("category", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(new String[]{"sbacm", "acm", "pcm"}, builder);
- }).then(ClientCommandManager.argument("message", StringArgumentType.greedyString()).executes((context) -> {
- String category = StringArgumentType.getString(context, "category");
- String message = StringArgumentType.getString(context, "message");
- followMenu(category, message);
- return 1;
- }))).executes((context) -> {
- sendPrivateMessageToSelf(Formatting.RED + "Invalid");
- return 1;
- })).then(ClientCommandManager.literal("config").then(ClientCommandManager.argument("category", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for config subfolder
- return CommandSource.suggestMatching(new String[]{"save", "reset", "load"}, builder);
- }).executes((context) -> {
- String category = StringArgumentType.getString(context, "category");
- if (category.equals("save")) {
- getConfig().save();
- sendPrivateMessageToSelf(Formatting.GREEN + "Saved config successfully");
- }
- else if (category.equals("load")) {
- BBsentials.config = Config.load();
- }
- else if (category.equals("reset")) {
- // Reset logic here
- }
- return 1;
- })).then(ClientCommandManager.literal("set-value").then(ClientCommandManager.argument("className", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for classes
- ArrayList<String> classNames = new ArrayList<>();
- classNames.add("Config");
- // Replace with your own logic to retrieve class names
- return CommandSource.suggestMatching(classNames, builder);
- }).then(ClientCommandManager.argument("variableName", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for variable names
- List<String> variableNames = null; // Replace with your own logic to retrieve variable names
- variableNames = List.of(getVariableInfo("de.hype.bbsentials.client", "Config"));
- return CommandSource.suggestMatching(variableNames, builder);
- }).then(ClientCommandManager.argument("variableValue", StringArgumentType.string()).executes((context) -> {
- // Handle "variableName" and "variableValue" logic here
- String variableName = StringArgumentType.getString(context, "variableName");
- String variableValue = StringArgumentType.getString(context, "variableValue");
- try {
- setVariableValue(getConfig(), variableName, variableValue);
- getConfig().save();
- } catch (ClassNotFoundException | NoSuchFieldException | IllegalAccessException |
- InstantiationException | InvocationTargetException | NoSuchMethodException e) {
- }
- return 1;
- }))))).then(ClientCommandManager.literal("get-value").then(ClientCommandManager.argument("className", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for classes
- ArrayList<String> classNames = new ArrayList<>();
- classNames.add("Config");
- // Replace with your own logic to retrieve class names
- return CommandSource.suggestMatching(classNames, builder);
- }).then(ClientCommandManager.argument("variableName", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for variable names
- List<String> variableNames = null; // Replace with your own logic to retrieve variable names
- variableNames = List.of(getVariableInfo("de.hype.bbsentials.client", "Config"));
- return CommandSource.suggestMatching(variableNames, builder);
- }).executes((context) -> {
- // Handle "variableName" and "variableValue" logic here
- String variableName = StringArgumentType.getString(context, "variableName");
- try {
- Chat.getVariableValue(getConfig(), variableName);
- } catch (Exception e) {
- e.printStackTrace();
- }
- return 1;
- }))).executes((context) -> {
- // Handle the case when "config" argument is not provided
- // ...
- return 1;
- })))
-
- );
-
- }); //hci
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(ClientCommandManager.literal("warp").then(ClientCommandManager.argument("destination", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(new String[]{"desert", "hub", "dhub", "nether", "isle", "wizard", "portal", "mines", "forge", "ch", "crystals", "nucleus", "end", "drag", "void", "castle", "howl", "park", "jungle", "nest", "arachne", "spider", "deep", "barn", "home", "kuurda", "wasteland", "dragontail", "scarleton", "smold", "garden", "da", "crypt", "museum", "trapper", "dungeon_hub"}, builder);
- }).executes((context) -> {
- // Handle "variableName" and "variableValue" logic here
- String destination = StringArgumentType.getString(context, "destination");
- getConfig().sender.addSendTask("/warp " + destination, 0);
- return 1;
- })));
- }); //warp test
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(ClientCommandManager.literal("creport").then(ClientCommandManager.argument("Player_Name", StringArgumentType.string()).executes((context) -> {
- String playerName = StringArgumentType.getString(context, "Player_Name");
- getConfig().sender.addSendTask("/creport " + playerName, 0);
- getConfig().addReported(playerName);
- return 1;
- })));
- });//creport helper → no double report during same launch
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(ClientCommandManager.literal("hp").then(ClientCommandManager.literal("accept").then(ClientCommandManager.argument("player", StringArgumentType.string()).executes((context) -> {
- String player = StringArgumentType.getString(context, "player");
- getConfig().sender.addImmediateSendTask("/party accept " + player);
- return 1;
- }))).then(ClientCommandManager.literal("chat").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party chat");
- return 1;
- })).then(ClientCommandManager.literal("demote").then(ClientCommandManager.argument("player", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(getConfig().getPlayersInParty(), builder);
- }).executes((context) -> {
- String player = StringArgumentType.getString(context, "player");
- getConfig().sender.addImmediateSendTask("/party demote " + player);
- return 1;
- }))).then(ClientCommandManager.literal("disband").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party disband");
- return 1;
- })).then(ClientCommandManager.literal("kick").then(ClientCommandManager.argument("player", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(getConfig().getPlayersInParty(), builder);
- }).executes((context) -> {
- String player = StringArgumentType.getString(context, "player");
- getConfig().sender.addImmediateSendTask("/party kick " + player);
- return 1;
- }))).then(ClientCommandManager.literal("kickoffline").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party kickoffline");
- return 1;
- })).then(ClientCommandManager.literal("leave").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party leave");
- return 1;
- })).then(ClientCommandManager.literal("list").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party list");
- return 1;
- })).then(ClientCommandManager.literal("mute").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party mute");
- return 1;
- })).then(ClientCommandManager.literal("poll").then(ClientCommandManager.argument("question/answer/answer/answer", StringArgumentType.greedyString()).executes((context) -> {
- String questionAndAnswers = StringArgumentType.getString(context, "question answer answer (answer)");
- getConfig().sender.addImmediateSendTask("/party poll " + questionAndAnswers);
- return 1;
- }))).then(ClientCommandManager.literal("private").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party private");
- return 1;
- })).then(ClientCommandManager.literal("promote").then(ClientCommandManager.argument("player", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(getConfig().getPlayersInParty(), builder);
- }).executes((context) -> {
- String player = StringArgumentType.getString(context, "player");
- getConfig().sender.addImmediateSendTask("/party promote " + player);
- return 1;
- }))).then(ClientCommandManager.literal("setting").then(ClientCommandManager.literal("allinvite")).executes((context) -> {
- String setting = StringArgumentType.getString(context, "setting");
- getConfig().sender.addImmediateSendTask("/party setting " + setting);
- return 1;
- })
-
- ).then(ClientCommandManager.literal("transfer").then(ClientCommandManager.argument("player", StringArgumentType.string()).suggests((context, builder) -> {
- // Provide tab-completion options for menu subfolder
- return CommandSource.suggestMatching(getConfig().getPlayersInParty(), builder);
- }).executes((context) -> {
- String player = StringArgumentType.getString(context, "player");
- getConfig().sender.addImmediateSendTask("/party transfer " + player);
- return 1;
- }))).then(ClientCommandManager.literal("warp").executes((context) -> {
- getConfig().sender.addImmediateSendTask("/party warp");
- return 1;
- })).executes(context -> {
- getConfig().sender.addImmediateSendTask("/p");
- return 1;
- }));
- }); //party test
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(
- ClientCommandManager.literal("goblinraid")
- .executes((context) -> {
- Discord.sendWebhookMessage("?goblinraid");
- return 1;
- })
- );
- });/*goblinraid*/
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(
- ClientCommandManager.literal("2xpowder")
- .executes((context) -> {
- Discord.sendWebhookMessage("?2xpowder");
- return 1;
- })
- );
- });/*2xpowder*/
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(
- ClientCommandManager.literal("bettertogether")
- .executes((context) -> {
- Discord.sendWebhookMessage("?bettertogether");
- return 1;
- })
- );
- });/*b2g*/
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(
- ClientCommandManager.literal("raffle")
- .executes((context) -> {
- Discord.sendWebhookMessage("?raffle");
- return 1;
- })
- );
- });/*raffle*/
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(
- ClientCommandManager.literal("gonewiththewind")
- .executes((context) -> {
- Discord.sendWebhookMessage("?gonewiththewind");
- return 1;
- })
- );
- });/*gonewiththewind*/
- ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
- dispatcher.register(ClientCommandManager.literal("chchest")
- .then(ClientCommandManager.argument("Item", StringArgumentType.string())
- .suggests((context, builder) -> {
- return CommandSource.suggestMatching(new String[]{"PrehistoricEgg", "Pickonimbus2000", "ElectronTransmitter", "FTX3070", "RobotronReflector", "ControlSwitch", "SyntheticHeart", "SuperliteMotor", "BlueGoblinEgg", "YellowGoblinEgg", "FlawlessAmberGemstone", "FlawlessJadeGemstone", "FlawlessSapphireGemstone", "FlawlessRubyGemstone", "FlawlessAmethystGemstone", "JungleHeart", "FlawlessTopazGemstone", "FlawlessJasperGemstone"}, builder);
- })
- .then(ClientCommandManager.argument("X", IntegerArgumentType.integer())
- .then(ClientCommandManager.argument("Y", IntegerArgumentType.integer())
- .then(ClientCommandManager.argument("Z", IntegerArgumentType.integer())
- .then(ClientCommandManager.argument("ContactWay", StringArgumentType.greedyString())
- .suggests(((context, builder) -> {
- return CommandSource.suggestMatching(new String[]{"Boop me", "Put IGN's in Thread", "bb:party me", "/p join"}, builder);
- }))
- .executes((context) -> {
- String destination = StringArgumentType.getString(context, "Item");
- int x = IntegerArgumentType.getInteger(context, "X");
- int y = IntegerArgumentType.getInteger(context, "Y");
- int z = IntegerArgumentType.getInteger(context, "Z");
- String contactWay = StringArgumentType.getString(context, "ContactWay");
-
- String combinedString = "?chchest " + destination + " " + x + " " + y + " " + z + " " + contactWay;
- Discord.sendWebhookMessage(combinedString); // Call your method with the combined string
- return 1;
- }
- )
- )
- )
- )
- )
- )
- );
- }); /*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
diff --git a/src/main/java/de/hype/bbsentials/client/Commands/command-systewm-new-buggy.zip b/src/main/java/de/hype/bbsentials/client/Commands/command-systewm-new-buggy.zip
new file mode 100644
index 0000000..2fd6c60
--- /dev/null
+++ b/src/main/java/de/hype/bbsentials/client/Commands/command-systewm-new-buggy.zip
Binary files differ
diff --git a/src/main/java/de/hype/bbsentials/mixins/SimpleOptionMixin.java b/src/main/java/de/hype/bbsentials/mixins/SimpleOptionMixin.java
index 50cbac5..7444788 100644
--- a/src/main/java/de/hype/bbsentials/mixins/SimpleOptionMixin.java
+++ b/src/main/java/de/hype/bbsentials/mixins/SimpleOptionMixin.java
@@ -25,7 +25,6 @@ public class SimpleOptionMixin implements ISimpleOption {
}
else {
if (!Objects.equals(this.value, value)) {
- System.out.println("used mixin");
this.value = value;
this.changeCallback.accept(this.value);
}
diff --git a/src/main/resources/modid.mixins.json b/src/main/resources/modid.mixins.json
index 980aedc..50a63d3 100644
--- a/src/main/resources/modid.mixins.json
+++ b/src/main/resources/modid.mixins.json
@@ -9,8 +9,7 @@
],
"client": [
"SimpleOptionMixin",
- "ClientCommandSourceMixin"
- ],
+ "ClientCommandSourceMixin"],
"injectors": {
"defaultRequire": 1
}