Give bonus for melons

This commit is contained in:
samczsun 2016-12-15 04:00:44 -05:00 committed by cnr
parent e107c0a64a
commit 84132588c2

View File

@ -70,6 +70,10 @@ public class SweetToothTrack extends Track
@EventHandler
public void onConsumeMelon(PlayerConsumeMelonEvent event)
{
incrementFor(event.getPlayer(), 1);
int basePoints = 1;
if (isSetActive(event.getPlayer(), SetCandyCane.class)) basePoints *= 2;
incrementFor(event.getPlayer(), basePoints);
}
}