mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	2.1.33
This commit is contained in:
		@@ -7,6 +7,11 @@ Key:
 | 
			
		||||
  ! Change
 | 
			
		||||
  - Removal
 | 
			
		||||
 | 
			
		||||
Version 2.1.33
 | 
			
		||||
    Renamed "Skills.Acrobatics.Prevent_AFK_Leveling" to "ExploitFix.Acrobatics"
 | 
			
		||||
    ExploitFix.Acrobatics when set to false allows gaining XP in Acrobatics freely with no anti-grind measures
 | 
			
		||||
    NOTE: The anti-grinding/exploit stuff is fully configurable in update 2.2 coming soon, this hotfix is to hold you over until that update comes out.
 | 
			
		||||
 | 
			
		||||
Version 2.1.32
 | 
			
		||||
    Completely removed Fireworks from mcMMO because they lag
 | 
			
		||||
    Added 'General.AprilFoolsEvent' setting to config.yml to turn off April Fools
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								pom.xml
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
    <groupId>com.gmail.nossr50.mcMMO</groupId>
 | 
			
		||||
    <artifactId>mcMMO</artifactId>
 | 
			
		||||
    <version>2.1.32</version>
 | 
			
		||||
    <version>2.1.33</version>
 | 
			
		||||
    <name>mcMMO</name>
 | 
			
		||||
    <url>https://github.com/mcMMO-Dev/mcMMO</url>
 | 
			
		||||
    <scm>
 | 
			
		||||
 
 | 
			
		||||
@@ -547,8 +547,6 @@ public class Config extends AutoUpdateConfigLoader {
 | 
			
		||||
    public int getWoodcuttingGate() { return config.getInt("Skills.Woodcutting.Ability_Activation_Level_Gate", 10); }
 | 
			
		||||
 | 
			
		||||
    /* AFK Leveling */
 | 
			
		||||
    public boolean getAcrobaticsPreventAFK() { return config.getBoolean("Skills.Acrobatics.Prevent_AFK_Leveling", true); }
 | 
			
		||||
    public int getAcrobaticsAFKMaxTries() { return config.getInt("Skills.Acrobatics.Max_Tries_At_Same_Location", 3); }
 | 
			
		||||
    public boolean getHerbalismPreventAFK() { return config.getBoolean("Skills.Herbalism.Prevent_AFK_Leveling", true); }
 | 
			
		||||
 | 
			
		||||
    /* Level Caps */
 | 
			
		||||
 
 | 
			
		||||
@@ -145,6 +145,8 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
 | 
			
		||||
    public boolean isEndermanEndermiteFarmingPrevented() { return config.getBoolean("ExploitFix.EndermanEndermiteFarms", true); }
 | 
			
		||||
 | 
			
		||||
    public boolean isFishingExploitingPrevented() { return config.getBoolean("ExploitFix.Fishing", true); }
 | 
			
		||||
    public boolean isAcrobaticsExploitingPrevented() { return config.getBoolean("ExploitFix.Acrobatics", true); }
 | 
			
		||||
 | 
			
		||||
    /* Curve settings */
 | 
			
		||||
    public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve")); }
 | 
			
		||||
    public boolean getCumulativeCurveEnabled() { return config.getBoolean("Experience_Formula.Cumulative_Curve", false); }
 | 
			
		||||
 
 | 
			
		||||
@@ -272,7 +272,7 @@ public class Roll extends AcrobaticsSubSkill {
 | 
			
		||||
     * @return true if exploits are detected, false otherwise
 | 
			
		||||
     */
 | 
			
		||||
    private boolean isExploiting(Player player) {
 | 
			
		||||
        if (!Config.getInstance().getAcrobaticsPreventAFK()) {
 | 
			
		||||
        if (!ExperienceConfig.getInstance().isAcrobaticsExploitingPrevented()) {
 | 
			
		||||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
package com.gmail.nossr50.skills.acrobatics;
 | 
			
		||||
 | 
			
		||||
import com.gmail.nossr50.config.experience.ExperienceConfig;
 | 
			
		||||
import com.gmail.nossr50.datatypes.experience.XPGainReason;
 | 
			
		||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
 | 
			
		||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
 | 
			
		||||
@@ -14,6 +15,7 @@ import com.gmail.nossr50.util.skills.ParticleEffectUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.RankUtils;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillActivationType;
 | 
			
		||||
import com.gmail.nossr50.util.skills.SkillUtils;
 | 
			
		||||
import com.sun.deploy.config.Config;
 | 
			
		||||
import org.bukkit.entity.Entity;
 | 
			
		||||
import org.bukkit.entity.LightningStrike;
 | 
			
		||||
import org.bukkit.entity.Player;
 | 
			
		||||
@@ -30,6 +32,9 @@ public class AcrobaticsManager extends SkillManager {
 | 
			
		||||
 | 
			
		||||
    public boolean canGainRollXP()
 | 
			
		||||
    {
 | 
			
		||||
        if(!ExperienceConfig.getInstance().isAcrobaticsExploitingPrevented())
 | 
			
		||||
            return true;
 | 
			
		||||
 | 
			
		||||
        if(System.currentTimeMillis() >= rollXPCooldown)
 | 
			
		||||
        {
 | 
			
		||||
            rollXPCooldown = System.currentTimeMillis() + rollXPInterval;
 | 
			
		||||
 
 | 
			
		||||
@@ -312,8 +312,6 @@ Skills:
 | 
			
		||||
    Acrobatics:
 | 
			
		||||
        Enabled_For_PVP: true
 | 
			
		||||
        Enabled_For_PVE: true
 | 
			
		||||
        Prevent_AFK_Leveling: true
 | 
			
		||||
        Max_Tries_At_Same_Location: 3
 | 
			
		||||
        Prevent_Dodge_Lightning: false
 | 
			
		||||
        # Prevent earning Acrobatics XP a few seconds after teleporting
 | 
			
		||||
        XP_After_Teleport_Cooldown: 5
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,7 @@ ExploitFix:
 | 
			
		||||
    # Prevent many exploits related to fishing
 | 
			
		||||
    Fishing: true
 | 
			
		||||
    EndermanEndermiteFarms: true
 | 
			
		||||
    Acrobatics: true
 | 
			
		||||
Experience_Bars:
 | 
			
		||||
    # Turn this to false if you wanna disable XP bars
 | 
			
		||||
    Enable: true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user