mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Fixing some Acrobatics related classes
This commit is contained in:
parent
e1656423c1
commit
32d9eaab3d
@ -7,7 +7,7 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|||||||
public class ConfigCoreSkillsAcrobatics {
|
public class ConfigCoreSkillsAcrobatics {
|
||||||
|
|
||||||
private static final boolean ROLL_DEFAULT = true;
|
private static final boolean ROLL_DEFAULT = true;
|
||||||
public static final boolean ACROBATICS_MASTER_DEFAULT = true;
|
private static final boolean ACROBATICS_MASTER_DEFAULT = true;
|
||||||
|
|
||||||
@Setting(value = "Disable", comment = "Enable the primary skill Acrobatics")
|
@Setting(value = "Disable", comment = "Enable the primary skill Acrobatics")
|
||||||
private boolean enableAcrobatics = ACROBATICS_MASTER_DEFAULT;
|
private boolean enableAcrobatics = ACROBATICS_MASTER_DEFAULT;
|
||||||
|
@ -5,6 +5,7 @@ import com.gmail.nossr50.datatypes.skills.subskills.interfaces.Interaction;
|
|||||||
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.Rank;
|
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.Rank;
|
||||||
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.SubSkill;
|
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.SubSkill;
|
||||||
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.SubSkillProperties;
|
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.SubSkillProperties;
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public abstract class AbstractSubSkill implements SubSkill, Interaction, Rank, SubSkillProperties {
|
public abstract class AbstractSubSkill implements SubSkill, Interaction, Rank, SubSkillProperties {
|
||||||
@ -14,8 +15,10 @@ public abstract class AbstractSubSkill implements SubSkill, Interaction, Rank, S
|
|||||||
protected String configKeySubSkill;
|
protected String configKeySubSkill;
|
||||||
protected String configKeyPrimary;
|
protected String configKeyPrimary;
|
||||||
protected SubSkillType subSkillType;
|
protected SubSkillType subSkillType;
|
||||||
|
protected final mcMMO pluginRef;
|
||||||
|
|
||||||
public AbstractSubSkill(String configKeySubSkill, String configKeyPrimary, SubSkillType subSkillType) {
|
public AbstractSubSkill(mcMMO pluginRef, String configKeySubSkill, String configKeyPrimary, SubSkillType subSkillType) {
|
||||||
|
this.pluginRef = pluginRef;
|
||||||
this.configKeySubSkill = configKeySubSkill;
|
this.configKeySubSkill = configKeySubSkill;
|
||||||
this.configKeyPrimary = configKeyPrimary;
|
this.configKeyPrimary = configKeyPrimary;
|
||||||
this.subSkillType = subSkillType;
|
this.subSkillType = subSkillType;
|
||||||
|
@ -13,8 +13,8 @@ public abstract class AcrobaticsSubSkill extends AbstractSubSkill {
|
|||||||
|
|
||||||
protected EventPriority interactionPriority;
|
protected EventPriority interactionPriority;
|
||||||
|
|
||||||
public AcrobaticsSubSkill(String configKeySub, EventPriority interactionPriority, SubSkillType subSkillType) {
|
public AcrobaticsSubSkill(mcMMO pluginRef, String configKeySub, EventPriority interactionPriority, SubSkillType subSkillType) {
|
||||||
super(configKeySub, "Acrobatics", subSkillType);
|
super(pluginRef, configKeySub, "Acrobatics", subSkillType);
|
||||||
|
|
||||||
this.interactionPriority = interactionPriority;
|
this.interactionPriority = interactionPriority;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user