• Automatically reload plugins when uploaded.
• Automatically load plugins when uploaded.
• Automatically reload a plugins dependencies.
• Supports small, large & modded servers.
• Supports small and large plugins.
• Fully configurable messages.
• Fully configurable settings.
• Toggle-able alert messages.
• Ignore specified plugins.
• Tab completion support!
• No dependencies!
• Alert messages for:
» Automatically reload plugins.
» Automatically load plugins.
• Folia support.
Code (Text):
• AutoPluginLoader.Alerts » Get alerts when a plugin is automatically reloaded/loaded.
• AutoPluginLoader.Commands » View & use the commands. (Required to use any other command)
• AutoPluginLoader.Load » Load a plugin.
• AutoPluginLoader.Unload » Unload a plugin.
• AutoPluginLoader.Reload » Reload a plugin.
• AutoPluginLoader.Usage » View the commands for a plugin.
• AutoPluginLoader.Info » View the info on a plugin.
• AutoPluginLoader.List » View the list of plugins.
• AutoPluginLoader.ReloadConfig » Reload the config.yml.
• AutoPluginLoader.Version » View APL's currently loaded version.
• AutoPluginLoader.History » View the sessions APL history.
# --- Generic responses -------------------------------------------------- Config-Reloaded: '&bᴀᴘʟ &7• &fThe config.yml was &asuccessfully &freloaded.'
No-Permission: '&bᴀᴘʟ &7• &cYou do not have permission to do that.'
Cant-Put-APL-There: '&bᴀᴘʟ &7• &fYou can’t use &aAutoPluginLoader &fas a plugin argument.'
Invalid-Plugin: '&bᴀᴘʟ &7• &c
%plugin% &fis not a plugin on this server.' Invalid-Subcommand: '&bᴀᴘʟ &7• &fThat sub-command doesn''t exist. &7
(&e/apl &fto view the list&7
)'
No-Description: '&bᴀᴘʟ &7• &c
%plugin% &fhas no plugin description.'
# --- History responses -------------------------------------------------- History-Header: '&8&m┏&m━━&b ᴀᴘʟ ʜɪꜱᴛᴏʀʏ &8&m━━━━━━━━━━━━━━━━━&8┓'
History-Footer: '&8┗&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━&8┛'
History-Display-Format: '&7
(%timestamp%) &f%action% &7» &b%pluginName%' # Example entry: "(12:34:56) Loaded » WorldEdit" No-History: '&bᴀᴘʟ &7• &fThere is currently
no history. &7
(This clears every server restart
)'
# ------------------------------------------------------------------------- update-check:
enabled: true
permission: autopluginloader.update
message: "&bᴀᴘʟ &7• &fA new version, &b%latest%&f, is available. You're running &e%current%&f." settings:
Your-Plugins-Folder: 'plugins'
Automatically-Load-Plugins: true
Automatically-Update-Plugins: true
# This DOES NOT mean when an update is released it will automatically be downloaded and uploaded to your server. # The above option refers to if you click and drag an already loaded jar (Example: WorldEdit) into the plugins folder, but it's a new version. # APL will detect that and reload the code. This updates its currently loaded version/code without the need of a restart. # Sorry for any confusion. I hope this clears this feature up. Load-Data-Delay: 5
# Seconds – must be < Timer-Delay Task:
Timer-Delay: 10
# Seconds – must be > Load-Data-Delay Timer: 1
# Seconds – check interval Seconds-Before-Reloading: 5
# Minimum age (s) before an update triggers Seconds-Before-Loading: 5
# Delay (s) after uploading a new *.jar Always-Reload-A-Plugins-Dependencies: true
# If false, use “-d” flag when unloading Send-Players-Alerts: true
# Needs AutoPluginLoader.Alerts permission Plugins-To-Ignore: # Skipped for auto-updates - 'WorldEdit'
- 'WorldGuard'
- 'AutoPluginLoader'
# Don’t remove – avoids recursion issues - 'Skript'
# Skript reloads can break extensions - 'ItemsAdder'
- 'Oraxen'
Code (Text):
• APLMain.PluginAPI.loadPlugin(File plugin);
» Loads a plugin. (Must be done before enabling a plugin)
• APLMain.PluginAPI.enablePlugin(Plugin plugin);
» Enable a plugin. (Must be loaded)
• APLMain.PluginAPI.getPlugin(String s);
» Make a string return as a Plugin.
• APLMain.PluginAPI.getPlugins();
» Returns all plugins as an ArrayList<Plugin>().
• APLMain.PluginAPI.getPluginsInAlphabeticalOrder();
» Returns all plugins as an ArrayList<Plugin>(), but in alphabetical order.
• APLMain.PluginAPI.disablePlugin(Plugin plugin);
» Disables a plugin. (Recommend to unload it 1st)
• APLMain.PluginAPI.reloadPlugin(Plugin plugin);
» Disables and then enables a plugin. (Doesn't refresh new code in a plugin)
• APLMain.PluginAPI.unloadPlugin(Plugin plugin, Boolean ReloadDependents);
» Unload a plugin and have the option to reload the plugins that plugin depends on.
• APLMain.PluginAPI.getDescription(File file);
» Returns the PluginDescriptionFile of a file.
• APLMain.PluginAPI.getFile(JavaPlugin plugin);
» Grab the file from a plugin.