Different check for spigot compatibility
This commit is contained in:
		| @@ -70,10 +70,12 @@ public class LibsDisguises extends JavaPlugin { | |||||||
|                     "reloads gracefully!"); |                     "reloads gracefully!"); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         if (Bukkit.getBukkitVersion().startsWith("git-Bukkit-")) { |         try { | ||||||
|             DisguiseUtilities.getLogger() |             Class cl = Class.forName("org.bukkit.Server$Spigot"); | ||||||
|                     .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"); |         catch (ClassNotFoundException e) { | ||||||
|  |             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()) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user