mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
2.1.33
This commit is contained in:
parent
ae551e17cd
commit
f3837265db
@ -7,6 +7,11 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- 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
|
Version 2.1.32
|
||||||
Completely removed Fireworks from mcMMO because they lag
|
Completely removed Fireworks from mcMMO because they lag
|
||||||
Added 'General.AprilFoolsEvent' setting to config.yml to turn off April Fools
|
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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.32</version>
|
<version>2.1.33</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -547,8 +547,6 @@ public class Config extends AutoUpdateConfigLoader {
|
|||||||
public int getWoodcuttingGate() { return config.getInt("Skills.Woodcutting.Ability_Activation_Level_Gate", 10); }
|
public int getWoodcuttingGate() { return config.getInt("Skills.Woodcutting.Ability_Activation_Level_Gate", 10); }
|
||||||
|
|
||||||
/* AFK Leveling */
|
/* 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); }
|
public boolean getHerbalismPreventAFK() { return config.getBoolean("Skills.Herbalism.Prevent_AFK_Leveling", true); }
|
||||||
|
|
||||||
/* Level Caps */
|
/* Level Caps */
|
||||||
|
@ -145,6 +145,8 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
|||||||
public boolean isEndermanEndermiteFarmingPrevented() { return config.getBoolean("ExploitFix.EndermanEndermiteFarms", true); }
|
public boolean isEndermanEndermiteFarmingPrevented() { return config.getBoolean("ExploitFix.EndermanEndermiteFarms", true); }
|
||||||
|
|
||||||
public boolean isFishingExploitingPrevented() { return config.getBoolean("ExploitFix.Fishing", true); }
|
public boolean isFishingExploitingPrevented() { return config.getBoolean("ExploitFix.Fishing", true); }
|
||||||
|
public boolean isAcrobaticsExploitingPrevented() { return config.getBoolean("ExploitFix.Acrobatics", true); }
|
||||||
|
|
||||||
/* Curve settings */
|
/* Curve settings */
|
||||||
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve")); }
|
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve")); }
|
||||||
public boolean getCumulativeCurveEnabled() { return config.getBoolean("Experience_Formula.Cumulative_Curve", false); }
|
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
|
* @return true if exploits are detected, false otherwise
|
||||||
*/
|
*/
|
||||||
private boolean isExploiting(Player player) {
|
private boolean isExploiting(Player player) {
|
||||||
if (!Config.getInstance().getAcrobaticsPreventAFK()) {
|
if (!ExperienceConfig.getInstance().isAcrobaticsExploitingPrevented()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package com.gmail.nossr50.skills.acrobatics;
|
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.experience.XPGainReason;
|
||||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
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.RankUtils;
|
||||||
import com.gmail.nossr50.util.skills.SkillActivationType;
|
import com.gmail.nossr50.util.skills.SkillActivationType;
|
||||||
import com.gmail.nossr50.util.skills.SkillUtils;
|
import com.gmail.nossr50.util.skills.SkillUtils;
|
||||||
|
import com.sun.deploy.config.Config;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.LightningStrike;
|
import org.bukkit.entity.LightningStrike;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -30,6 +32,9 @@ public class AcrobaticsManager extends SkillManager {
|
|||||||
|
|
||||||
public boolean canGainRollXP()
|
public boolean canGainRollXP()
|
||||||
{
|
{
|
||||||
|
if(!ExperienceConfig.getInstance().isAcrobaticsExploitingPrevented())
|
||||||
|
return true;
|
||||||
|
|
||||||
if(System.currentTimeMillis() >= rollXPCooldown)
|
if(System.currentTimeMillis() >= rollXPCooldown)
|
||||||
{
|
{
|
||||||
rollXPCooldown = System.currentTimeMillis() + rollXPInterval;
|
rollXPCooldown = System.currentTimeMillis() + rollXPInterval;
|
||||||
|
@ -312,8 +312,6 @@ Skills:
|
|||||||
Acrobatics:
|
Acrobatics:
|
||||||
Enabled_For_PVP: true
|
Enabled_For_PVP: true
|
||||||
Enabled_For_PVE: true
|
Enabled_For_PVE: true
|
||||||
Prevent_AFK_Leveling: true
|
|
||||||
Max_Tries_At_Same_Location: 3
|
|
||||||
Prevent_Dodge_Lightning: false
|
Prevent_Dodge_Lightning: false
|
||||||
# Prevent earning Acrobatics XP a few seconds after teleporting
|
# Prevent earning Acrobatics XP a few seconds after teleporting
|
||||||
XP_After_Teleport_Cooldown: 5
|
XP_After_Teleport_Cooldown: 5
|
||||||
|
@ -26,6 +26,7 @@ ExploitFix:
|
|||||||
# Prevent many exploits related to fishing
|
# Prevent many exploits related to fishing
|
||||||
Fishing: true
|
Fishing: true
|
||||||
EndermanEndermiteFarms: true
|
EndermanEndermiteFarms: true
|
||||||
|
Acrobatics: true
|
||||||
Experience_Bars:
|
Experience_Bars:
|
||||||
# Turn this to false if you wanna disable XP bars
|
# Turn this to false if you wanna disable XP bars
|
||||||
Enable: true
|
Enable: true
|
||||||
|
Loading…
Reference in New Issue
Block a user