Use Plugin logger for Paper requirement message

This commit is contained in:
jmp committed 2021-05-12 00:55:38 -07:00
1 parent 3d6d04d35f
commit a273f5896f
1 file changed
+8 -7
@@ -16,18 +16,19 @@ public class CarbonChatBukkitEntry extends JavaPlugin {
@Override
public void onEnable() {
this.carbon = new CarbonChatBukkit(this);
if (!PaperLib.isPaper()) {
this.carbon.logger().error("*");
this.carbon.logger().error("* CarbonChat makes extensive use of APIs added by Paper.");
this.carbon.logger().error("* For this reason, CarbonChat is not compatible with Spigot or CraftBukkit servers.");
this.carbon.logger().error("* Upgrade your server to Paper in order to use CarbonChat.");
this.carbon.logger().error("*");
this.getLogger().log(Level.SEVERE, "*");
this.getLogger().log(Level.SEVERE, "* CarbonChat makes extensive use of APIs added by Paper.");
this.getLogger().log(Level.SEVERE, "* For this reason, CarbonChat is not compatible with Spigot or CraftBukkit servers.");
this.getLogger().log(Level.SEVERE, "* Upgrade your server to Paper in order to use CarbonChat.");
this.getLogger().log(Level.SEVERE, "*");
PaperLib.suggestPaper(this, Level.SEVERE);
Bukkit.getPluginManager().disablePlugin(this);
return;
}
this.carbon = new CarbonChatBukkit(this);
final Metrics metrics = new Metrics(this, BSTATS_PLUGIN_ID);
this.carbon.initialize();