Package dev.majek.pc.mechanic
Class Mechanic
- java.lang.Object
-
- dev.majek.pc.mechanic.Mechanic
-
- All Implemented Interfaces:
org.bukkit.event.Listener
- Direct Known Subclasses:
CommandHandler
,DataHandler
,GuiHandler
,HeadDatabase
,LanguageHandler
,PartyHandler
,PlayerChat
,PlayerMove
,PlayerQuit
,PvPEvent
,User
public class Mechanic extends Object implements org.bukkit.event.Listener
Represents a mechanic such as aPlayerQuitEvent
and is used in classes that need to run code on plugin startup.
-
-
Constructor Summary
Constructors Constructor Description Mechanic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onPlayerJoin(org.bukkit.entity.Player player)
Runs when a player joins the server.void
onPlayerQuit(org.bukkit.entity.Player player)
Runs when a player quits the server.void
onShutdown()
Runs when the plugin is being shutdown.void
onStartup()
Runs when the plugin is being enabled.
-
-
-
Method Detail
-
onStartup
public void onStartup()
Runs when the plugin is being enabled.
-
onShutdown
public void onShutdown()
Runs when the plugin is being shutdown.
-
onPlayerJoin
public void onPlayerJoin(org.bukkit.entity.Player player)
Runs when a player joins the server.- Parameters:
player
- the joining player
-
onPlayerQuit
public void onPlayerQuit(org.bukkit.entity.Player player)
Runs when a player quits the server.- Parameters:
player
- the quitting player
-
-