1 | package sh.okx.rankup.requirements.requirement.votingplugin; | |
2 | ||
3 | import com.bencodez.votingplugin.user.UserManager; | |
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 VotingPluginPointsRequirement extends ProgressiveRequirement { | |
10 | ||
11 | public VotingPluginPointsRequirement(RankupPlugin plugin, String name) { | |
12 | super(plugin, name); | |
13 | } | |
14 | ||
15 | protected VotingPluginPointsRequirement(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/VotingPluginPointsRequirement::getProgress → NO_COVERAGE |
return UserManager.getInstance().getVotingPluginUser(player).getPoints(); |
22 | } | |
23 | ||
24 | @Override | |
25 | public Requirement clone() { | |
26 |
1
1. clone : replaced return value with null for sh/okx/rankup/requirements/requirement/votingplugin/VotingPluginPointsRequirement::clone → NO_COVERAGE |
return new VotingPluginPointsRequirement(this); |
27 | } | |
28 | } | |
Mutations | ||
21 |
1.1 |
|
26 |
1.1 |