1 | package sh.okx.rankup.requirements.requirement.superbvote; | |
2 | ||
3 | import io.minimum.minecraft.superbvote.SuperbVote; | |
4 | import org.bukkit.entity.Player; | |
5 | import sh.okx.rankup.RankupPlugin; | |
6 | import sh.okx.rankup.requirements.ProgressiveRequirement; | |
7 | import sh.okx.rankup.requirements.Requirement; | |
8 | ||
9 | public class SuperbVoteVotesRequirement extends ProgressiveRequirement { | |
10 | public SuperbVoteVotesRequirement(RankupPlugin plugin) { | |
11 | super(plugin, "superbvote-votes"); | |
12 | } | |
13 | ||
14 | private SuperbVoteVotesRequirement(Requirement clone) { | |
15 | super(clone); | |
16 | } | |
17 | ||
18 | @Override | |
19 | public double getProgress(Player player) { | |
20 |
1
1. getProgress : replaced double return with 0.0d for sh/okx/rankup/requirements/requirement/superbvote/SuperbVoteVotesRequirement::getProgress → NO_COVERAGE |
return SuperbVote.getPlugin().getVoteStorage().getVotes(player.getUniqueId()).getVotes(); |
21 | } | |
22 | ||
23 | @Override | |
24 | public Requirement clone() { | |
25 |
1
1. clone : replaced return value with null for sh/okx/rankup/requirements/requirement/superbvote/SuperbVoteVotesRequirement::clone → NO_COVERAGE |
return new SuperbVoteVotesRequirement(this); |
26 | } | |
27 | } | |
Mutations | ||
20 |
1.1 |
|
25 |
1.1 |