mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 09:17:36 +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()) {
|
||||
String message = String.format("[%s] Loading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
|
||||
server.getLogger().info(message);
|
||||
String message = String.format("Enabling %s", plugin.getDescription().getFullName());
|
||||
plugin.getLogger().info(message);
|
||||
|
||||
JavaPlugin jPlugin = (JavaPlugin) plugin;
|
||||
|
||||
@ -357,8 +357,8 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
|
||||
if (plugin.isEnabled()) {
|
||||
String message = String.format("[%s] Unloading %s.", plugin.getDescription().getName(), plugin.getDescription().getFullName());
|
||||
server.getLogger().info(message);
|
||||
String message = String.format("Disabling %s", plugin.getDescription().getFullName());
|
||||
plugin.getLogger().info(message);
|
||||
|
||||
server.getPluginManager().callEvent(new PluginDisableEvent(plugin));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user