diff options
Diffstat (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt')
-rw-r--r-- | src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt index 55f5f4d..39e319f 100644 --- a/src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/ExternalConfiguration.kt @@ -29,7 +29,7 @@ object ExternalConfiguration { rewardMissedMessageRegex = Regex(config.missedRewardRegex) userAgent = config.userAgent disabled = config.disabled - disabledMessage = config.disabledMessage + disabledMessage = if (config.disabledMessage2.isNullOrBlank()) config.disabledMessage else config.disabledMessage2 } } @@ -40,6 +40,7 @@ object ExternalConfiguration { val missedRewardRegex: String = "We noticed you haven't claimed your free Daily Reward yet!\\nTo choose your reward you have to click the link to visit our website! As a reminder, here's your link for today: https://rewards\\.hypixel\\.net/claim-reward/(?<id>[A-Za-z0-9]{8})", val userAgent: String = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36", val disabled: Boolean = false, - val disabledMessage: String = "Reward Claim was disabled by the mod author for an unknown reason." + val disabledMessage: String = "Reward Claim was disabled by the mod author for an unknown reason.", + val disabledMessage2: String = "Reward Claim was disabled by the mod author for an unknown reason." ) } |