timers plugin: remove prayer enhance infobox on expire
This commit is contained in:
@@ -105,6 +105,7 @@ public class TimersPlugin extends Plugin
|
|||||||
private static final String SUPER_ANTIFIRE_EXPIRED_MESSAGE = "<col=7f007f>Your super antifire potion has expired.</col>";
|
private static final String SUPER_ANTIFIRE_EXPIRED_MESSAGE = "<col=7f007f>Your super antifire potion has expired.</col>";
|
||||||
private static final String SUPER_ANTIVENOM_DRINK_MESSAGE = "You drink some of your super antivenom potion";
|
private static final String SUPER_ANTIVENOM_DRINK_MESSAGE = "You drink some of your super antivenom potion";
|
||||||
private static final String KILLED_TELEBLOCK_OPPONENT_TEXT = "<col=4f006f>Your Tele Block has been removed because you killed ";
|
private static final String KILLED_TELEBLOCK_OPPONENT_TEXT = "<col=4f006f>Your Tele Block has been removed because you killed ";
|
||||||
|
private static final String PRAYER_ENHANCE_EXPIRED = "<col=ff0000>Your prayer enhance effect has worn off.</col>";
|
||||||
|
|
||||||
private static final Pattern DEADMAN_HALF_TELEBLOCK_PATTERN = Pattern.compile("<col=4f006f>A Tele Block spell has been cast on you by (.+)\\. It will expire in 1 minute, 15 seconds\\.</col>");
|
private static final Pattern DEADMAN_HALF_TELEBLOCK_PATTERN = Pattern.compile("<col=4f006f>A Tele Block spell has been cast on you by (.+)\\. It will expire in 1 minute, 15 seconds\\.</col>");
|
||||||
private static final Pattern FULL_TELEBLOCK_PATTERN = Pattern.compile("<col=4f006f>A Tele Block spell has been cast on you by (.+)\\. It will expire in 5 minutes, 0 seconds\\.</col>");
|
private static final Pattern FULL_TELEBLOCK_PATTERN = Pattern.compile("<col=4f006f>A Tele Block spell has been cast on you by (.+)\\. It will expire in 5 minutes, 0 seconds\\.</col>");
|
||||||
@@ -592,6 +593,11 @@ public class TimersPlugin extends Plugin
|
|||||||
createGameTimer(PRAYER_ENHANCE);
|
createGameTimer(PRAYER_ENHANCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.showPrayerEnhance() && event.getMessage().equals(PRAYER_ENHANCE_EXPIRED))
|
||||||
|
{
|
||||||
|
removeGameTimer(PRAYER_ENHANCE);
|
||||||
|
}
|
||||||
|
|
||||||
if (config.showCharge() && event.getMessage().equals(CHARGE_MESSAGE))
|
if (config.showCharge() && event.getMessage().equals(CHARGE_MESSAGE))
|
||||||
{
|
{
|
||||||
createGameTimer(CHARGE);
|
createGameTimer(CHARGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user