Paper Plugins (#8108)

This commit is contained in:
Owen1212055
2023-02-19 09:57:10 -05:00
parent 5d777995f4
commit 6915dee3e3
45 changed files with 9426 additions and 1139 deletions

View File

@@ -28,14 +28,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ private Logger logger = null; // Paper - PluginLogger -> Logger
public JavaPlugin() {
final ClassLoader classLoader = this.getClass().getClassLoader();
// Paper start
@@ -0,0 +0,0 @@ public abstract class JavaPlugin extends PluginBase {
this.dataFolder = dataFolder;
this.classLoader = classLoader;
this.configFile = new File(dataFolder, "config.yml");
- this.logger = new PluginLogger(this);
+ // Paper - Handle plugin prefix in implementation
+ this.logger = Logger.getLogger(description.getPrefix() != null ? description.getPrefix() : description.getName());
this.pluginMeta = configuration; // Paper
+ this.logger = Logger.getLogger(description.getPrefix() != null ? description.getPrefix() : description.getName()); // Paper - Handle plugin prefix in implementation
}
/**