1 | package sh.okx.rankup.prestige; | |
2 | ||
3 | import java.util.Collections; | |
4 | import org.bukkit.entity.Player; | |
5 | import sh.okx.rankup.RankupPlugin; | |
6 | import sh.okx.rankup.ranks.Rank; | |
7 | import sh.okx.rankup.ranks.requirements.LastRankRequirements; | |
8 | ||
9 | public class LastPrestige extends Prestige { | |
10 | public LastPrestige(RankupPlugin plugin, String name) { | |
11 | super(null, plugin, null, name, new LastRankRequirements(), Collections.emptyList(), null, null); | |
12 | } | |
13 | ||
14 | @Override | |
15 | public boolean isIn(Player player) { | |
16 |
2
1. isIn : replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isIn → SURVIVED 2. isIn : replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::isIn → KILLED |
return plugin.getPermissions().inGroup(player.getUniqueId(), rank); |
17 | } | |
18 | ||
19 | @Override | |
20 | public boolean hasRequirements(Player player) { | |
21 |
1
1. hasRequirements : replaced boolean return with true for sh/okx/rankup/prestige/LastPrestige::hasRequirements → NO_COVERAGE |
return false; |
22 | } | |
23 | ||
24 | @Override | |
25 | public void applyRequirements(Player player) { | |
26 | } | |
27 | ||
28 | @Override | |
29 | public void runCommands(Player player, Rank next) { | |
30 | } | |
31 | ||
32 | @Override | |
33 | public boolean isEligible(Player player) { | |
34 |
1
1. isEligible : replaced boolean return with false for sh/okx/rankup/prestige/LastPrestige::isEligible → NO_COVERAGE |
return true; |
35 | } | |
36 | } | |
Mutations | ||
16 |
1.1 2.2 |
|
21 |
1.1 |
|
34 |
1.1 |