Fixed NullPointerException on disable if plugin failed to load
This commit is contained in:
parent
8cdf99429d
commit
acdfb3515b
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ public final class CoreProtect extends JavaPlugin {
|
||||||
private static void safeShutdown(CoreProtect plugin) {
|
private static void safeShutdown(CoreProtect plugin) {
|
||||||
try {
|
try {
|
||||||
/* if server is stopping, log disconnections of online players */
|
/* if server is stopping, log disconnections of online players */
|
||||||
if (PaperAdapter.ADAPTER.isStopping(plugin.getServer())) {
|
if (ConfigHandler.serverRunning && PaperAdapter.ADAPTER.isStopping(plugin.getServer())) {
|
||||||
for (Player player : plugin.getServer().getOnlinePlayers()) {
|
for (Player player : plugin.getServer().getOnlinePlayers()) {
|
||||||
PlayerQuitListener.queuePlayerQuit(player);
|
PlayerQuitListener.queuePlayerQuit(player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue