Package me.ryun.plugintools
Class ServerShutdownOnQuit
java.lang.Object
me.ryun.plugintools.ServerShutdownOnQuit
- All Implemented Interfaces:
org.bukkit.event.Listener
Implements the
Listener interface to shutdown the server when the last player quits- Author:
- SSS Ryun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonPlayerQuitEvent(@NotNull org.bukkit.event.player.PlayerQuitEvent event) Shutdown the server when there are no online players after the last player quits.
-
Constructor Details
-
ServerShutdownOnQuit
public ServerShutdownOnQuit()
-
-
Method Details
-
onPlayerQuitEvent
public void onPlayerQuitEvent(@NotNull @NotNull org.bukkit.event.player.PlayerQuitEvent event) Shutdown the server when there are no online players after the last player quits.- Parameters:
event-PlayerQuitEventfrom theEventHandler
-