update to alpha.10
This commit is contained in:
@@ -26,6 +26,7 @@ public class Rank {
|
||||
private final String next;
|
||||
@Getter
|
||||
private final String rank;
|
||||
@Getter
|
||||
private final Set<Requirement> requirements;
|
||||
private final BinaryOperator<Boolean> reducer;
|
||||
private final List<String> commands;
|
||||
|
||||
@@ -35,7 +35,7 @@ public class PlaytimeMinutesRequirement extends Requirement {
|
||||
|
||||
@Override
|
||||
public double getRemaining(Player player) {
|
||||
return amount - (player.getStatistic(playOneTick) * TICKS_PER_MINUTE);
|
||||
return Math.max(0, amount - (player.getStatistic(playOneTick) * TICKS_PER_MINUTE));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user