diff --git a/paper-api/src/main/java/org/bukkit/fillr/Fillr.java b/paper-api/src/main/java/org/bukkit/fillr/Fillr.java index 0fd40de59c..55d6ee09f9 100644 --- a/paper-api/src/main/java/org/bukkit/fillr/Fillr.java +++ b/paper-api/src/main/java/org/bukkit/fillr/Fillr.java @@ -15,6 +15,9 @@ public class Fillr extends JavaPlugin { public void onEnable() { } + public void onLoad() { + } + @Override public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("check")) { diff --git a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java index 380404da71..82359691c2 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java @@ -58,6 +58,12 @@ public interface Plugin extends CommandExecutor { */ public void onDisable(); + /** + * Called after a plugin is loaded but before it has been enabled. + * When mulitple plugins are loaded, the onLoad() for all plugins is called before any onEnable() is called. + */ + public void onLoad(); + /** * Called when this plugin is enabled */