style: 修改日志
This commit is contained in:
@@ -52,7 +52,6 @@ public final class CoreBukkitUtils {
|
|||||||
return Bukkit.getServer().getClass().getName().split("\\.")[3];
|
return Bukkit.getServer().getClass().getName().split("\\.")[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
@NotNull
|
@NotNull
|
||||||
public static Package getNMSPackage() {
|
public static Package getNMSPackage() {
|
||||||
String nmsVersion = getNMSVersion();
|
String nmsVersion = getNMSVersion();
|
||||||
@@ -310,6 +309,7 @@ public final class CoreBukkitUtils {
|
|||||||
plugin.getLogger().info("已生成插件存档文件夹 " + parentFile.getName());
|
plugin.getLogger().info("已生成插件存档文件夹 " + parentFile.getName());
|
||||||
}
|
}
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
|
plugin.getLogger().info("生成配置文件: " + filename);
|
||||||
try (InputStream stream = plugin.getResource(filename)) {
|
try (InputStream stream = plugin.getResource(filename)) {
|
||||||
if (stream == null) {
|
if (stream == null) {
|
||||||
throw new NullPointerException("在插件 " + plugin.getName() + " 的文件内部未找到 " + filename + " ");
|
throw new NullPointerException("在插件 " + plugin.getName() + " 的文件内部未找到 " + filename + " ");
|
||||||
|
Reference in New Issue
Block a user