Package dev.satyrn.xpeconomy.listeners
Class WorldEventListener
java.lang.Object
dev.satyrn.xpeconomy.listeners.WorldEventListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Handles world events.
-
Constructor Summary
ConstructorDescriptionWorldEventListener
(org.bukkit.plugin.Plugin plugin, AccountManager accountManager) Creates a new world event listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onWorldSave
(org.bukkit.event.world.WorldSaveEvent e) Saves the account data on the manager each time the world is saved.
-
Constructor Details
-
WorldEventListener
Creates a new world event listener.- Parameters:
plugin
- The plugin instance.accountManager
- The account manager instance.
-
-
Method Details
-
onWorldSave
public void onWorldSave(org.bukkit.event.world.WorldSaveEvent e) Saves the account data on the manager each time the world is saved.- Parameters:
e
- The world save event.
-