From e64a439fb4f6c0712d68c81ef431a6af6ba2835d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 11 May 2020 03:49:19 +1200 Subject: [PATCH] Friendly warning that craftbukkit is messed up --- src/main/java/me/libraryaddict/disguise/LibsDisguises.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java index 8fa0bf50..e6d4f323 100644 --- a/src/main/java/me/libraryaddict/disguise/LibsDisguises.java +++ b/src/main/java/me/libraryaddict/disguise/LibsDisguises.java @@ -68,6 +68,12 @@ public class LibsDisguises extends JavaPlugin { "reloads gracefully!"); } + if (Bukkit.getBukkitVersion().startsWith("git-Bukkit-")) { + DisguiseUtilities.getLogger() + .severe("Oh dear, you seem to be using CraftBukkit. Please use Spigot or Paper instead! This " + + "plugin will continue to load, but it will look like a mugging victim"); + } + if (!new File(getDataFolder(), "disguises.yml").exists()) { saveResource("disguises.yml", false); }