Verified Commit 3ffb6a27 authored by Gigadoc 2's avatar Gigadoc 2

run the playerQuit method right after startup

parent 4397866a
......@@ -25,6 +25,11 @@ public class IdleShutdown extends JavaPlugin {
System.out.println("Registering PlayerQuitListener...");
getServer().getPluginManager()
.registerEvents(this.playerQuitListener, this);
// Run the playerQuit routine once. We might have been enabled at
// runtime, or the server was started automatically without anyone
// actually joining.
onPlayerQuit();
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment