Friendly warning that craftbukkit is messed up
This commit is contained in:
parent
61128dd372
commit
e64a439fb4
@ -68,6 +68,12 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
"reloads gracefully!");
|
"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()) {
|
if (!new File(getDataFolder(), "disguises.yml").exists()) {
|
||||||
saveResource("disguises.yml", false);
|
saveResource("disguises.yml", false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user