File tree Expand file tree Collapse file tree
kotlin/trplugins/menu/module Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ object Loader {
8989 return @start result
9090 }
9191 if (result.succeed() && TrMenu .SETTINGS .getBoolean(" Loader.Listen-Files" , true )) {
92- listen(it)
92+ if (TrMenu .SETTINGS .getBoolean(" Options.File-Listener" )) {
93+ listen(it)
94+ }
9395 } else errors.addAll(result.errors)
9496 result
9597 },
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.bukkit.command.CommandSender
44import taboolib.common.platform.command.subCommand
55import taboolib.module.configuration.Type
66import taboolib.platform.util.sendLang
7+ import trplugins.menu.TrMenu
78import trplugins.menu.api.suffixes
89import trplugins.menu.module.conf.Loader
910import trplugins.menu.module.display.Menu
@@ -56,8 +57,10 @@ object CommandConvert : CommandExpression {
5657 File (file.parentFile, " ${file.nameWithoutExtension} .${type.suffixes[0 ]} " ).let {
5758 menu.conf.file = it
5859 menu.conf.saveToFile()
59- // 开始监听新文件
60- Loader .listen(it)
60+ if (TrMenu .SETTINGS .getBoolean(" Options.File-Listener" )) {
61+ // 开始监听新文件
62+ Loader .listen(it)
63+ }
6164 }
6265 }
6366 sender.sendLang(" Command-Convert-Converted" , menu.id, type.name)
Original file line number Diff line number Diff line change 11Options :
22 # High, Normal, Low
33 Running-Performance : Normal
4+ # Optional the file listener (auto reload menu config)
5+ File-Listener : true
46 Multi-Thread : true
57 Async-Load-Menus : true
68 # 是否启用并发加载菜单
You can’t perform that action at this time.
0 commit comments