[+] 禁止服务器使用/reload confirm

This commit is contained in:
Taskeren 2019-07-11 00:07:55 +08:00
parent 46b80345aa
commit ab15be171e

View File

@ -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这个插件不能重载");
}
}