Skip to content

Commit

Permalink
chore: disable leagues notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Mar 2, 2025
1 parent 2ec5f6e commit c8b7c2b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/main/java/dinkplugin/DinkPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import dinkplugin.notifiers.GrandExchangeNotifier;
import dinkplugin.notifiers.GroupStorageNotifier;
import dinkplugin.notifiers.KillCountNotifier;
import dinkplugin.notifiers.LeaguesNotifier;
import dinkplugin.notifiers.LevelNotifier;
import dinkplugin.notifiers.LootNotifier;
import dinkplugin.notifiers.MetaNotifier;
Expand Down Expand Up @@ -89,7 +88,7 @@ public class DinkPlugin extends Plugin {
private @Inject QuestNotifier questNotifier;
private @Inject ClueNotifier clueNotifier;
private @Inject SpeedrunNotifier speedrunNotifier;
private @Inject LeaguesNotifier leaguesNotifier;
// private @Inject LeaguesNotifier leaguesNotifier;
private @Inject KillCountNotifier killCountNotifier;
private @Inject CombatTaskNotifier combatTaskNotifier;
private @Inject DiaryNotifier diaryNotifier;
Expand Down Expand Up @@ -249,7 +248,7 @@ public void onChatMessage(ChatMessage message) {
combatTaskNotifier.onGameMessage(chatMessage);
deathNotifier.onGameMessage(chatMessage);
speedrunNotifier.onGameMessage(chatMessage);
leaguesNotifier.onGameMessage(chatMessage);
// leaguesNotifier.onGameMessage(chatMessage);
break;

case FRIENDSCHATNOTIFICATION:
Expand Down
26 changes: 18 additions & 8 deletions src/main/java/dinkplugin/DinkPluginConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,14 @@ public interface DinkPluginConfig extends Config {
)
String externalSection = "External Plugin Requests";

/*
@ConfigSection(
name = "Leagues",
description = "Settings for notifying when you complete league tasks, unlock areas, and redeem relics",
position = 200,
closedByDefault = true
)
*/
String leaguesSection = "Leagues";

@ConfigSection(
Expand Down Expand Up @@ -724,7 +726,8 @@ default String externalWebhook() {
description = "If non-empty, Leagues messages are sent to this URL, instead of the primary URL.<br/>" +
"Note: this only applies to the Leagues notifier, not every notifier in a seasonal world",
position = 0,
section = webhookSection
section = webhookSection,
hidden = true
)
default String leaguesWebhook() {
return "";
Expand Down Expand Up @@ -2081,7 +2084,8 @@ default ExternalScreenshotPolicy externalSendImage() {
name = "Enable Leagues",
description = "Enable notifications upon various leagues events",
position = 200,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean notifyLeagues() {
return false;
Expand All @@ -2092,7 +2096,8 @@ default boolean notifyLeagues() {
name = "Send Image",
description = "Send image with the notification",
position = 201,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean leaguesSendImage() {
return true;
Expand All @@ -2103,7 +2108,8 @@ default boolean leaguesSendImage() {
name = "Send Area Unlocks",
description = "Send notifications upon area unlocks",
position = 202,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean leaguesAreaUnlock() {
return true;
Expand All @@ -2114,7 +2120,8 @@ default boolean leaguesAreaUnlock() {
name = "Send Relic Unlocks",
description = "Send notifications upon relic unlocks",
position = 203,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean leaguesRelicUnlock() {
return true;
Expand All @@ -2125,7 +2132,8 @@ default boolean leaguesRelicUnlock() {
name = "Send Completed Tasks",
description = "Send notifications upon completing a task",
position = 204,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean leaguesTaskCompletion() {
return true;
Expand All @@ -2136,7 +2144,8 @@ default boolean leaguesTaskCompletion() {
name = "Send Mastery Unlocks",
description = "Send notifications upon combat mastery selections",
position = 205,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default boolean leaguesMasteryUnlock() {
return true;
Expand All @@ -2147,7 +2156,8 @@ default boolean leaguesMasteryUnlock() {
name = "Task Min Difficulty",
description = "The minimum tier of a task for a notification to be sent",
position = 206,
section = leaguesSection
section = leaguesSection,
hidden = true
)
default LeagueTaskDifficulty leaguesTaskMinTier() {
return LeagueTaskDifficulty.EASY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

@Disabled
public class LeaguesNotifierTest extends MockedNotifierTest {

@Bind
Expand Down

0 comments on commit c8b7c2b

Please sign in to comment.