1
mirror of https://github.com/CarmJos/ScriptItems synced 2026-06-04 20:37:33 +08:00

修改加载的提示信息

This commit is contained in:
2022-03-12 01:25:04 +08:00
parent 3c676d57c0
commit 17c705d046
@@ -32,7 +32,7 @@ public class ItemsManager {
this.idKey = new NamespacedKey(Main.getInstance(), "id");
this.uuidKey = new NamespacedKey(Main.getInstance(), "uuid");
loadItems();
Main.info("加载了 " + items.size() + "前缀");
Main.info("成功加载了 " + items.size() + "指令物品");
}
public void loadItems() {
@@ -65,11 +65,12 @@ public class ItemsManager {
if (files.size() > 0) {
for (File file : files) {
if (file.getName().startsWith(".")) continue;
String fileName = file.getName();
if (fileName.startsWith(".")) continue;
try {
ItemSettings item = ItemSettings.load(file);
Main.info("完成物品加载 " + item.getIdentifier() + " : " + item.getName());
Main.info("Successfully loaded " + item.getIdentifier() + " : " + item.getName());
Main.info(" 完成物品加载 [#" + item.getIdentifier() + "] " + item.getName() + " (" + fileName + ")");
Main.info(" Successfully loaded [#" + item.getIdentifier() + "] " + item.getName() + " (" + fileName + ")");
dataItems.put(item.getIdentifier(), item);
} catch (Exception ex) {
Main.severe("在加载物品 " + file.getAbsolutePath() + " 时出错,请检查配置!");