mirror of
				https://github.com/PlaceholderAPI/PlaceholderAPI
				synced 2025-10-31 06:12:28 +01:00 
			
		
		
		
	Added documentation / explanation for the ServerLoadEvent
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| package me.clip.placeholderapi; | ||||
|  | ||||
| import java.util.Map; | ||||
|  | ||||
| import org.bukkit.Bukkit; | ||||
| import org.bukkit.event.EventHandler; | ||||
| import org.bukkit.event.Listener; | ||||
| @@ -15,6 +16,15 @@ public class ServerLoadEventListener implements Listener { | ||||
|         Bukkit.getPluginManager().registerEvents(this, instance); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * This method will be called when the server is first loaded | ||||
|      * | ||||
|      * The goal of the method is to register all the expansions as soon as possible | ||||
|      * especially before players can join | ||||
|      * | ||||
|      * This will ensure no issues with expanions and hooks. | ||||
|      * @param e the server load event | ||||
|      */ | ||||
|     @EventHandler | ||||
|     public void onServerLoad(ServerLoadEvent e) { | ||||
|         plugin.getLogger().info("Placeholder expansion registration initializing..."); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user