From ab15be171e2cecba48f0859b77c8372e22f44c97 Mon Sep 17 00:00:00 2001 From: Taskeren Date: Thu, 11 Jul 2019 00:07:55 +0800 Subject: [PATCH] =?UTF-8?q?[+]=20=E7=A6=81=E6=AD=A2=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E4=BD=BF=E7=94=A8/reload=20confirm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nativebot/bot/listener/ServerLoadEventListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/ren/taske/nativebot/bot/listener/ServerLoadEventListener.java b/src/main/java/ren/taske/nativebot/bot/listener/ServerLoadEventListener.java index b846907..ecb9bb0 100644 --- a/src/main/java/ren/taske/nativebot/bot/listener/ServerLoadEventListener.java +++ b/src/main/java/ren/taske/nativebot/bot/listener/ServerLoadEventListener.java @@ -1,5 +1,6 @@ package ren.taske.nativebot.bot.listener; +import org.bukkit.Bukkit; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.server.ServerLoadEvent; @@ -19,7 +20,10 @@ public class ServerLoadEventListener implements Listener { } if(type == LoadType.RELOAD) { - + Bukkit.getServer().shutdown(); + System.err.println("Don't try to reload NativeBot"); + System.err.println("NativeBot CANNOT support reloading."); + System.err.println("不要尝试重载NativeBot,这个插件不能重载!"); } }