Skip to content

Commit

Permalink
修复加载时的一些问题
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Dec 25, 2024
1 parent 35f7fc5 commit dfd8764
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@AutoTask(
rules = {
@TaskRule(lifeCycle = LifeCycle.ENABLE, priority = 1),
@TaskRule(lifeCycle = LifeCycle.ACTIVE, priority = 1),
@TaskRule(lifeCycle = LifeCycle.RELOAD)
}
)
Expand Down Expand Up @@ -87,7 +87,7 @@ public List<String> getFunc(String funcName) {
@Override
public void run(Plugin plugin, LifeCycle lifeCycle) {
switch (lifeCycle) {
case ENABLE -> {
case ACTIVE -> {
functionFile = new BukkitConfigWrapper(Craftorithm.instance(), "function.yml");
functionFile.reloadConfig();
regDefScriptKeyword();
Expand Down

0 comments on commit dfd8764

Please sign in to comment.