Skip to content
Snippets Groups Projects
Verified Commit 3ffb6a27 authored by Gigadoc 2's avatar Gigadoc 2
Browse files

run the playerQuit method right after startup

parent 4397866a
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment