Merge pull request #4007 from Nightfirecat/add-stamina-mix-timer

timers plugin: Create timer for stamina mixes
This commit is contained in:
Tomas Slusny
2018-06-25 11:28:26 +02:00
committed by GitHub

View File

@@ -288,6 +288,16 @@ public class TimersPlugin extends Plugin
createGameTimer(SUPERANTIPOISON);
return;
}
if (config.showStamina()
&& event.getMenuOption().contains("Drink")
&& (event.getId() == ItemID.STAMINA_MIX1
|| event.getId() == ItemID.STAMINA_MIX2))
{
// Needs menu option hook because mixes use a common drink message, distinct from their standard potion messages
createGameTimer(STAMINA);
return;
}
}
@Subscribe