mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
xpratemultiplier fix
This commit is contained in:
parent
5647eebe99
commit
198b7e3f46
@ -50,7 +50,7 @@ public class XprateCommand implements TabExecutor {
|
|||||||
mcMMO.p.toggleXpEventEnabled();
|
mcMMO.p.toggleXpEventEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
ExperienceConfig.getInstance().setExperienceGainsGlobalMultiplier(ORIGINAL_XP_RATE);
|
ExperienceConfig.getInstance().setGlobalXPMultiplier(ORIGINAL_XP_RATE);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
@ -81,7 +81,7 @@ public class XprateCommand implements TabExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ExperienceConfig.getInstance().setExperienceGainsGlobalMultiplier(newXpRate);
|
ExperienceConfig.getInstance().setGlobalXPMultiplier(newXpRate);
|
||||||
|
|
||||||
if (mcMMO.p.isXPEventEnabled()) {
|
if (mcMMO.p.isXPEventEnabled()) {
|
||||||
if(AdvancedConfig.getInstance().useTitlesForXPEvent())
|
if(AdvancedConfig.getInstance().useTitlesForXPEvent())
|
||||||
|
@ -253,6 +253,11 @@ public class ExperienceConfig extends ConfigValidated {
|
|||||||
return getDoubleValue(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL);
|
return getDoubleValue(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setGlobalXPMultiplier(double newXpMultiplier)
|
||||||
|
{
|
||||||
|
getUserRootNode().getNode(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL).setValue(newXpMultiplier);
|
||||||
|
}
|
||||||
|
|
||||||
//TODO: Rewrite this
|
//TODO: Rewrite this
|
||||||
/*public void setExperienceGainsGlobalMultiplier(double value) {
|
/*public void setExperienceGainsGlobalMultiplier(double value) {
|
||||||
config.set(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL, value);
|
config.set(EXPERIENCE_FORMULA, MULTIPLIER, GLOBAL, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user