mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
Commented out class triggers 2
This commit is contained in:
parent
3ef9011b9a
commit
0b734132e3
@ -276,7 +276,7 @@ public class MMOCore extends LuminePlugin {
|
||||
Bukkit.getPluginManager().registerEvents(new FishingListener(), this);
|
||||
Bukkit.getPluginManager().registerEvents(new PlayerCollectStats(), this);
|
||||
Bukkit.getPluginManager().registerEvents(new PlayerPressKeyListener(), this);
|
||||
Bukkit.getPluginManager().registerEvents(new ClassTriggers(), this);
|
||||
// Bukkit.getPluginManager().registerEvents(new ClassTriggers(), this);
|
||||
|
||||
/*
|
||||
* Initialize player data from all online players. This is very important to do
|
||||
|
@ -21,6 +21,8 @@ import net.Indyuce.mmocore.experience.droptable.ExperienceTable;
|
||||
import net.Indyuce.mmocore.experience.provider.ExperienceDispenser;
|
||||
import net.Indyuce.mmocore.experience.provider.MainExperienceDispenser;
|
||||
import net.Indyuce.mmocore.experience.source.type.ExperienceSource;
|
||||
import net.Indyuce.mmocore.player.playerclass.ClassTrigger;
|
||||
import net.Indyuce.mmocore.player.playerclass.ClassTriggerType;
|
||||
import net.Indyuce.mmocore.skill.ClassSkill;
|
||||
import net.Indyuce.mmocore.skill.RegisteredSkill;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
@ -51,7 +53,10 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
|
||||
private final Map<StatType, LinearValue> stats = new HashMap<>();
|
||||
private final Map<String, ClassSkill> skills = new LinkedHashMap<>();
|
||||
private final List<Subclass> subclasses = new ArrayList<>();
|
||||
// private final Map<String, ClassTrigger> classTriggers = new HashMap<>();
|
||||
|
||||
@Deprecated
|
||||
private final Map<String, ClassTrigger> classTriggers = new HashMap<>();
|
||||
|
||||
private final Map<PlayerResource, ResourceRegeneration> resourceHandlers = new HashMap<>();
|
||||
|
||||
@Deprecated
|
||||
@ -293,10 +298,11 @@ public class PlayerClass extends PostLoadObject implements ExperienceObject {
|
||||
return options.containsKey(option) ? options.get(option) : option.getDefault();
|
||||
}
|
||||
|
||||
// @Nullable
|
||||
// public ClassTrigger getClassTrigger(ClassTriggerType type) {
|
||||
// return classTriggers.get(type);
|
||||
// }
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public ClassTrigger getClassTrigger(ClassTriggerType type) {
|
||||
return classTriggers.get(type);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public Set<String> getEventTriggers() {
|
||||
|
@ -53,7 +53,6 @@ public class ClassTrigger {
|
||||
return type;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public SkillResult trigger(TriggerMetadata triggerMeta) {
|
||||
return castableSkill.cast(triggerMeta);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user