mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:01:58 +01:00
Adjust plugin enable/disable logging
By: EdGruberman <ed@rjump.com>
This commit is contained in:
parent
2e383f96df
commit
3b9e2f4a67
@ -328,8 +328,8 @@ public class JavaPluginLoader implements PluginLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!plugin.isEnabled()) {
|
if (!plugin.isEnabled()) {
|
||||||
String message = String.format("[%s] Loading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
|
String message = String.format("Enabling %s", plugin.getDescription().getFullName());
|
||||||
server.getLogger().info(message);
|
plugin.getLogger().info(message);
|
||||||
|
|
||||||
JavaPlugin jPlugin = (JavaPlugin) plugin;
|
JavaPlugin jPlugin = (JavaPlugin) plugin;
|
||||||
|
|
||||||
@ -357,8 +357,8 @@ public class JavaPluginLoader implements PluginLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (plugin.isEnabled()) {
|
if (plugin.isEnabled()) {
|
||||||
String message = String.format("[%s] Unloading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
|
String message = String.format("Disabling %s", plugin.getDescription().getFullName());
|
||||||
server.getLogger().info(message);
|
plugin.getLogger().info(message);
|
||||||
|
|
||||||
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user