File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
java/pers/yufiria/craftorithm Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 11crypticlibVer =1.13.5.1
2- pluginVer =1.11.0.7 -dev
2+ pluginVer =1.11.0.8 -dev
Original file line number Diff line number Diff line change 1010import pers .yufiria .craftorithm .command .item .ItemCommand ;
1111import pers .yufiria .craftorithm .command .menu .OpenMenuCommand ;
1212import pers .yufiria .craftorithm .command .recipe .*;
13+ import pers .yufiria .craftorithm .config .PluginConfigs ;
1314
1415import java .util .Arrays ;
1516
@@ -23,7 +24,7 @@ public class MainCommand extends CommandTree {
2324 CommandInfo
2425 .builder ("craftorithm" )
2526 .permission (new PermInfo ("craftorithm.command" ))
26- .aliases (Arrays . asList ( "craft" , "cra" , "crafto" ))
27+ .aliases (PluginConfigs . MAIN_COMMAND_ALIASES . value ( ))
2728 .build ()
2829 );
2930 }
Original file line number Diff line number Diff line change @@ -38,4 +38,9 @@ public class PluginConfigs {
3838 )
3939 );
4040
41+ public final static StringListConfig MAIN_COMMAND_ALIASES = new StringListConfig (
42+ "main_command_aliases" ,
43+ List .of ("cra" , "craft" , "crafto" )
44+ );
45+
4146}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ debug: false
1515# 单个tick最多注册几个配方
1616max_reg_recipe_per_tick : 20
1717cannot_craft_items : []
18- # 依照上面的挂钩顺序挂钩插件可以挂钩的物品插件,插件自动识别物品ID时将会优先识别上面的插件
19- # 不包含在此列表里的物品插件将不会尝试挂钩,除非该插件主动挂钩
18+ # 依照上面的挂钩顺序挂钩插件可以挂钩的物品插件,插件自动识别物品ID时将会优先识别上面的插件
19+ # 不包含在此列表里的物品插件将不会尝试挂钩,除非该插件主动挂钩
2020item_plugin_hook_priority :
2121 - Nexo
2222 - AzureFlow
@@ -26,4 +26,8 @@ item_plugin_hook_priority:
2626 - EcoItems
2727 - ExecutableItems
2828 - MMOItems
29- - MythicMobs
29+ - MythicMobs
30+ main_command_aliases :
31+ - cra
32+ - craft
33+ - crafto
You can’t perform that action at this time.
0 commit comments