1 | package sh.okx.rankup.requirements.requirement.votingplugin; | |
2 | ||
3 | import com.bencodez.votingplugin.topvoter.TopVoter; | |
4 | import com.bencodez.votingplugin.user.UserManager; | |
5 | import org.bukkit.entity.Player; | |
6 | import sh.okx.rankup.RankupPlugin; | |
7 | import sh.okx.rankup.requirements.ProgressiveRequirement; | |
8 | import sh.okx.rankup.requirements.Requirement; | |
9 | ||
10 | public class VotingPluginVotesRequirement extends ProgressiveRequirement { | |
11 | public VotingPluginVotesRequirement(RankupPlugin plugin) { | |
12 | super(plugin, "votingplugin-votes"); | |
13 | } | |
14 | ||
15 | protected VotingPluginVotesRequirement(Requirement clone) { | |
16 | super(clone); | |
17 | } | |
18 | ||
19 | @Override | |
20 | public double getProgress(Player player) { | |
21 |
1
1. getProgress : replaced double return with 0.0d for sh/okx/rankup/requirements/requirement/votingplugin/VotingPluginVotesRequirement::getProgress → NO_COVERAGE |
return UserManager.getInstance().getVotingPluginUser(player).getTotal(TopVoter.AllTime); |
22 | } | |
23 | ||
24 | @Override | |
25 | public Requirement clone() { | |
26 |
1
1. clone : replaced return value with null for sh/okx/rankup/requirements/requirement/votingplugin/VotingPluginVotesRequirement::clone → NO_COVERAGE |
return new VotingPluginVotesRequirement(this); |
27 | } | |
28 | } | |
Mutations | ||
21 |
1.1 |
|
26 |
1.1 |