Give bonus for melons
This commit is contained in:
parent
e107c0a64a
commit
84132588c2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user