Exclude ironmen from daily herb box notifications
This commit is contained in:
@@ -36,6 +36,7 @@ import net.runelite.api.Varbits;
|
||||
import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.GameStateChanged;
|
||||
import net.runelite.api.events.GameTick;
|
||||
import net.runelite.api.vars.AccountType;
|
||||
import net.runelite.client.chat.ChatColor;
|
||||
import net.runelite.client.chat.ChatColorType;
|
||||
import net.runelite.client.chat.ChatMessageBuilder;
|
||||
@@ -146,8 +147,9 @@ public class DailyTasksPlugin extends Plugin
|
||||
|
||||
private boolean checkCanCollectHerbBox()
|
||||
{
|
||||
// Exclude ironmen from herb box notifications
|
||||
int value = client.getVar(Varbits.DAILY_HERB_BOX);
|
||||
return value < 15; // < 15 can claim
|
||||
return client.getAccountType() == AccountType.NORMAL && value < 15; // < 15 can claim
|
||||
}
|
||||
|
||||
private boolean checkCanCollectStaves()
|
||||
|
||||
Reference in New Issue
Block a user