fix: LoL forgor to check if extras exists and self care enabled

This commit is contained in:
ChomeNS
2025-08-18 17:48:46 +07:00
parent a0042f74df
commit 0a87c1aed6
2 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
3583
3584

View File

@@ -30,7 +30,9 @@ public class UsernameSelfCare extends SelfCare {
return // running less than 2 seconds is useless since the bot will just get a cooldown message
(System.currentTimeMillis() - usernameStartTime) >= 2 * 1000
&& (System.currentTimeMillis() - successTime) >= 4 * 1000 // prevents the bot from spamming
&& IllegalCharactersUtilities.isValidChatString(username);
&& IllegalCharactersUtilities.isValidChatString(username)
&& bot.serverFeatures.hasExtras
&& bot.config.selfCare.username;
}
@Override