mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Use Plugin logger for Paper requirement message
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user