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:
@@ -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)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user