9
0
mirror of https://github.com/Auxilor/EcoJobs.git synced 2025-12-28 19:39:24 +00:00

moved below placeholders

This commit is contained in:
Exanthiax
2025-02-04 23:12:04 +00:00
parent 7065642d97
commit 533d036a18

View File

@@ -67,18 +67,6 @@ class Job(
PriceEconomy(config.getDouble("leave-price")), ""
)
val joinEffects = Effects.compileChain(
config.getSubsections("join-effects"),
NormalExecutorFactory.create(),
ViolationContext(plugin, "Job $id join-effects")
)
val leaveEffects = Effects.compileChain(
config.getSubsections("leave-effects"),
NormalExecutorFactory.create(),
ViolationContext(plugin, "Job $id leave-effects")
)
val levelKey: PersistentDataKey<Int> = PersistentDataKey(
EcoJobsPlugin.instance.namespacedKeyFactory.create("${id}_level"),
PersistentDataKeyType.INT,
@@ -214,6 +202,18 @@ class Job(
}.register()
}
val joinEffects = Effects.compileChain(
config.getSubsections("join-effects"),
NormalExecutorFactory.create(),
ViolationContext(plugin, "Job $id join-effects")
)
val leaveEffects = Effects.compileChain(
config.getSubsections("leave-effects"),
NormalExecutorFactory.create(),
ViolationContext(plugin, "Job $id leave-effects")
)
override fun onRegister() {
jobXpGains.forEach { it.bind(JobXPAccumulator(this)) }
}