feat!: Updates mcMMO to v2.2.004 and drop support for v2.1-ish

The `RandomChanceUtil` class got deleted and I don't see anything `SkillActivationType` related.
The mcMMO changelog and the commit deleting the class doesn't help me answear the question,
whether that is important or not.

Users will have to update their mcMMO installation - But I think we don't want to support any non-supported
version of all the hooked plugins anyway
This commit is contained in:
Christian Koop 2024-04-06 19:32:17 +02:00
parent 99e5bfeeba
commit d955cc9059
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
3 changed files with 11 additions and 5 deletions

View File

@ -393,7 +393,7 @@
<dependency>
<groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId>
<version>2.1.225</version>
<version>2.2.004</version>
<scope>provided</scope>
</dependency>

View File

@ -11,7 +11,7 @@ import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
import com.gmail.nossr50.datatypes.skills.SubSkillType;
import com.gmail.nossr50.util.Permissions;
import com.gmail.nossr50.util.player.UserManager;
import com.gmail.nossr50.util.random.RandomChanceUtil;
import com.gmail.nossr50.util.random.ProbabilityUtil;
import com.gmail.nossr50.util.skills.RankUtils;
import com.gmail.nossr50.util.skills.SkillActivationType;
import org.bukkit.block.Block;
@ -487,7 +487,7 @@ public class McMMOHandler {
return Permissions.isSubSkillEnabled(player, SubSkillType.HERBALISM_DOUBLE_DROPS)
&& RankUtils.hasReachedRank(1, player, SubSkillType.HERBALISM_DOUBLE_DROPS)
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.HERBALISM_DOUBLE_DROPS, player);
&& ProbabilityUtil.isSkillRNGSuccessful(SubSkillType.HERBALISM_DOUBLE_DROPS, player);
}
public static boolean hasMiningDoubleDrops(Player player) {
@ -501,7 +501,7 @@ public class McMMOHandler {
return Permissions.isSubSkillEnabled(player, SubSkillType.MINING_DOUBLE_DROPS)
&& RankUtils.hasReachedRank(1, player, SubSkillType.MINING_DOUBLE_DROPS)
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.MINING_DOUBLE_DROPS, player);
&& ProbabilityUtil.isSkillRNGSuccessful(SubSkillType.MINING_DOUBLE_DROPS, player);
}
public static boolean hasWoodcuttingDoubleDrops(Player player) {
@ -515,7 +515,7 @@ public class McMMOHandler {
return Permissions.isSubSkillEnabled(player, SubSkillType.WOODCUTTING_HARVEST_LUMBER)
&& RankUtils.hasReachedRank(1, player, SubSkillType.WOODCUTTING_HARVEST_LUMBER)
&& RandomChanceUtil.isActivationSuccessful(SkillActivationType.RANDOM_LINEAR_100_SCALE_WITH_CAP, SubSkillType.WOODCUTTING_HARVEST_LUMBER, player);
&& ProbabilityUtil.isSkillRNGSuccessful(SubSkillType.WOODCUTTING_HARVEST_LUMBER, player);
}
public static boolean isUsingBerserk(Player player) {

View File

@ -159,10 +159,16 @@
<url>https://maven.enginehub.org/repo/</url>
</repository>
<repository>
<id>neetgames-repo</id>
<url>https://nexus.neetgames.com/repository/maven-releases/</url>
</repository>
<repository>
<id>songoda-public</id>
<url>https://repo.songoda.com/repository/public/</url>
</repository>
<repository>
<id>third party</id>
<url>https://repo.songoda.com/repository/third-party/</url>