Skip to content

Commit b765feb

Browse files
authored
chore: disable leagues notifier (pajlads#669)
1 parent ae6f7ff commit b765feb

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

src/main/java/dinkplugin/DinkPlugin.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import dinkplugin.notifiers.GrandExchangeNotifier;
1313
import dinkplugin.notifiers.GroupStorageNotifier;
1414
import dinkplugin.notifiers.KillCountNotifier;
15-
import dinkplugin.notifiers.LeaguesNotifier;
1615
import dinkplugin.notifiers.LevelNotifier;
1716
import dinkplugin.notifiers.LootNotifier;
1817
import dinkplugin.notifiers.MetaNotifier;
@@ -89,7 +88,7 @@ public class DinkPlugin extends Plugin {
8988
private @Inject QuestNotifier questNotifier;
9089
private @Inject ClueNotifier clueNotifier;
9190
private @Inject SpeedrunNotifier speedrunNotifier;
92-
private @Inject LeaguesNotifier leaguesNotifier;
91+
// private @Inject LeaguesNotifier leaguesNotifier;
9392
private @Inject KillCountNotifier killCountNotifier;
9493
private @Inject CombatTaskNotifier combatTaskNotifier;
9594
private @Inject DiaryNotifier diaryNotifier;
@@ -254,7 +253,7 @@ public void onChatMessage(ChatMessage message) {
254253
combatTaskNotifier.onGameMessage(chatMessage);
255254
deathNotifier.onGameMessage(chatMessage);
256255
speedrunNotifier.onGameMessage(chatMessage);
257-
leaguesNotifier.onGameMessage(chatMessage);
256+
// leaguesNotifier.onGameMessage(chatMessage);
258257
break;
259258

260259
case FRIENDSCHATNOTIFICATION:

src/main/java/dinkplugin/DinkPluginConfig.java

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,14 @@ public interface DinkPluginConfig extends Config {
189189
)
190190
String externalSection = "External Plugin Requests";
191191

192+
/*
192193
@ConfigSection(
193194
name = "Leagues",
194195
description = "Settings for notifying when you complete league tasks, unlock areas, and redeem relics",
195196
position = 200,
196197
closedByDefault = true
197198
)
199+
*/
198200
String leaguesSection = "Leagues";
199201

200202
@ConfigSection(
@@ -724,7 +726,8 @@ default String externalWebhook() {
724726
description = "If non-empty, Leagues messages are sent to this URL, instead of the primary URL.<br/>" +
725727
"Note: this only applies to the Leagues notifier, not every notifier in a seasonal world",
726728
position = 0,
727-
section = webhookSection
729+
section = webhookSection,
730+
hidden = true
728731
)
729732
default String leaguesWebhook() {
730733
return "";
@@ -2081,7 +2084,8 @@ default ExternalScreenshotPolicy externalSendImage() {
20812084
name = "Enable Leagues",
20822085
description = "Enable notifications upon various leagues events",
20832086
position = 200,
2084-
section = leaguesSection
2087+
section = leaguesSection,
2088+
hidden = true
20852089
)
20862090
default boolean notifyLeagues() {
20872091
return false;
@@ -2092,7 +2096,8 @@ default boolean notifyLeagues() {
20922096
name = "Send Image",
20932097
description = "Send image with the notification",
20942098
position = 201,
2095-
section = leaguesSection
2099+
section = leaguesSection,
2100+
hidden = true
20962101
)
20972102
default boolean leaguesSendImage() {
20982103
return true;
@@ -2103,7 +2108,8 @@ default boolean leaguesSendImage() {
21032108
name = "Send Area Unlocks",
21042109
description = "Send notifications upon area unlocks",
21052110
position = 202,
2106-
section = leaguesSection
2111+
section = leaguesSection,
2112+
hidden = true
21072113
)
21082114
default boolean leaguesAreaUnlock() {
21092115
return true;
@@ -2114,7 +2120,8 @@ default boolean leaguesAreaUnlock() {
21142120
name = "Send Relic Unlocks",
21152121
description = "Send notifications upon relic unlocks",
21162122
position = 203,
2117-
section = leaguesSection
2123+
section = leaguesSection,
2124+
hidden = true
21182125
)
21192126
default boolean leaguesRelicUnlock() {
21202127
return true;
@@ -2125,7 +2132,8 @@ default boolean leaguesRelicUnlock() {
21252132
name = "Send Completed Tasks",
21262133
description = "Send notifications upon completing a task",
21272134
position = 204,
2128-
section = leaguesSection
2135+
section = leaguesSection,
2136+
hidden = true
21292137
)
21302138
default boolean leaguesTaskCompletion() {
21312139
return true;
@@ -2136,7 +2144,8 @@ default boolean leaguesTaskCompletion() {
21362144
name = "Send Mastery Unlocks",
21372145
description = "Send notifications upon combat mastery selections",
21382146
position = 205,
2139-
section = leaguesSection
2147+
section = leaguesSection,
2148+
hidden = true
21402149
)
21412150
default boolean leaguesMasteryUnlock() {
21422151
return true;
@@ -2147,7 +2156,8 @@ default boolean leaguesMasteryUnlock() {
21472156
name = "Task Min Difficulty",
21482157
description = "The minimum tier of a task for a notification to be sent",
21492158
position = 206,
2150-
section = leaguesSection
2159+
section = leaguesSection,
2160+
hidden = true
21512161
)
21522162
default LeagueTaskDifficulty leaguesTaskMinTier() {
21532163
return LeagueTaskDifficulty.EASY;

src/test/java/dinkplugin/notifiers/LeaguesNotifierTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import static org.mockito.Mockito.verify;
2929
import static org.mockito.Mockito.when;
3030

31+
@Disabled
3132
public class LeaguesNotifierTest extends MockedNotifierTest {
3233

3334
@Bind

0 commit comments

Comments
 (0)