Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
discord state option
Browse files Browse the repository at this point in the history
  • Loading branch information
TerriblePanda committed Sep 8, 2019
1 parent e44079b commit 9f52adb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/me/grax/jbytemod/discord/Discord.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/me/grax/jbytemod/res/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/locale/en.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<string name="about">About</string>
<string name="sort_methods">Sort Methods</string>
<string name="use_rt">Use rt.jar instead of dynamic loading</string>
<string name="discord_state">Show discord status</string>
<string name="primary_color">Primary Color</string>
<string name="secondary_color">Secondary Color</string>
<string name="general_group">General</string>
Expand Down

0 comments on commit 9f52adb

Please sign in to comment.