diff --git a/src/main/java/me/grax/jbytemod/discord/Discord.java b/src/main/java/me/grax/jbytemod/discord/Discord.java index 2a33f7a..6ca8694 100644 --- a/src/main/java/me/grax/jbytemod/discord/Discord.java +++ b/src/main/java/me/grax/jbytemod/discord/Discord.java @@ -35,7 +35,7 @@ public static void updatePresence(String details, String state) { DiscordRichPresence presence = new DiscordRichPresence(); presence.details = details; presence.startTimestamp = startTimestamp; - if (!state.equals("")) { + if (!state.equals("") && JByteMod.ops.get("discord_state").getBoolean()) { presence.state = state; } diff --git a/src/main/java/me/grax/jbytemod/res/Options.java b/src/main/java/me/grax/jbytemod/res/Options.java index eddf82d..c03a0bd 100644 --- a/src/main/java/me/grax/jbytemod/res/Options.java +++ b/src/main/java/me/grax/jbytemod/res/Options.java @@ -29,7 +29,8 @@ public class Options { new Option("analyze_errors", true, Type.BOOLEAN, "editor"), new Option("simplify_graph", true, Type.BOOLEAN, "graph"), new Option("remove_redundant", false, Type.BOOLEAN, "graph"), new Option("max_redundant_input", 2, Type.INT, "graph"), new Option("decompile_graph", true, Type.BOOLEAN, "graph"), new Option("primary_color", "#557799", Type.STRING, "color"), - new Option("secondary_color", "#995555", Type.STRING, "color"), new Option("use_weblaf", true, Type.BOOLEAN, "style"))); + new Option("secondary_color", "#995555", Type.STRING, "color"), new Option("use_weblaf", true, Type.BOOLEAN, "style"), + new Option("discord_state", true, Type.BOOLEAN))); public Options() { initializeDecompilerOptions(); diff --git a/src/main/resources/locale/en.xml b/src/main/resources/locale/en.xml index 8682cf9..1a7a56b 100644 --- a/src/main/resources/locale/en.xml +++ b/src/main/resources/locale/en.xml @@ -6,6 +6,7 @@ About Sort Methods Use rt.jar instead of dynamic loading + Show discord status Primary Color Secondary Color General