Skip to content

Commit

Permalink
remove "RemoveLobbyRanks", broken & unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
udu3324 committed Jul 29, 2023
1 parent e566156 commit d6c05e7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 75 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/udu3324/poinpow/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ public static void create() {
w.write("# Poinpow v" + version + " by udu3324 | Config" + System.lineSeparator());
w.write("# Hey! I suggest you use the in-game commands instead of editing the config directly." + System.lineSeparator());
w.write(System.lineSeparator());
w.write(RemoveLobbyRanks.name + ": false" + System.lineSeparator());
w.write(AutoSkipBarrier.name + ": true" + System.lineSeparator());
w.write(BlockLobbyWelcome.name + ": true" + System.lineSeparator());
w.write(BlockLobbyAds.name + ": true" + System.lineSeparator());
Expand All @@ -139,7 +138,6 @@ public static void create() {
create();
} else {
//set values from config since its good
RemoveLobbyRanks.toggled.set(Boolean.parseBoolean(getValueFromConfig(RemoveLobbyRanks.name)));
AutoSkipBarrier.toggled.set(Boolean.parseBoolean(getValueFromConfig(AutoSkipBarrier.name)));
BlockLobbyWelcome.toggled.set(Boolean.parseBoolean(getValueFromConfig(BlockLobbyWelcome.name)));
BlockLobbyAds.toggled.set(Boolean.parseBoolean(getValueFromConfig(BlockLobbyAds.name)));
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/udu3324/poinpow/commands/Commands.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public static void register(CommandDispatcher<FabricClientCommandSource> dispatc
dispatcher.register(literal("poinpow")
.executes(ctx -> help(ctx.getSource()))

.then(literal(RemoveLobbyRanks.name)
.executes(ctx -> description(ctx.getSource(), RemoveLobbyRanks.name, RemoveLobbyRanks.description, RemoveLobbyRanks.toggled))
.then(literal("true").executes(ctx -> toggle(ctx.getSource(), RemoveLobbyRanks.name, RemoveLobbyRanks.toggled, true)))
.then(literal("false").executes(ctx -> toggle(ctx.getSource(), RemoveLobbyRanks.name, RemoveLobbyRanks.toggled, false))))

.then(literal(AutoSkipBarrier.name)
.executes(ctx -> description(ctx.getSource(), AutoSkipBarrier.name, AutoSkipBarrier.description, AutoSkipBarrier.toggled))
.then(literal("true").executes(ctx -> toggle(ctx.getSource(), AutoSkipBarrier.name, AutoSkipBarrier.toggled, true)))
Expand Down Expand Up @@ -109,13 +104,6 @@ private static int help(FabricClientCommandSource source) {
.withUnderline(true)
));

//remove lobby ranks
source.sendFeedback(Text.literal("[toggled|" + RemoveLobbyRanks.toggled + "] " + RemoveLobbyRanks.name + " (click 2 toggle)").styled(style -> style
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Text.literal(RemoveLobbyRanks.description + "\n\nClick to Toggle")))
.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/poinpow " + RemoveLobbyRanks.name + " " + !RemoveLobbyRanks.toggled.get()))
.withColor(Formatting.DARK_GRAY)
));

//auto skip barrier
source.sendFeedback(Text.literal("[toggled|" + AutoSkipBarrier.toggled + "] " + AutoSkipBarrier.name).styled(style -> style
.withHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, Text.literal(AutoSkipBarrier.description + "\n\nClick to Toggle")))
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/udu3324/poinpow/mixin/ChatMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ private void onMessage(Text message, MessageSignatureData signature, MessageIndi

if (BlockMinehutAds.check(chat, ci)) return;

//this should be left always at the bottom
RemoveLobbyRanks.check(chat, ci);

}
}
59 changes: 0 additions & 59 deletions src/main/java/com/udu3324/poinpow/utils/RemoveLobbyRanks.java

This file was deleted.

0 comments on commit d6c05e7

Please sign in to comment.