Plugin check

This commit is contained in:
libraryaddict 2024-07-04 02:27:45 +12:00
parent ea321739a9
commit ed99f5eba4

View File

@ -606,6 +606,10 @@ public class DisguiseConfig {
setVelocitySent(config.getBoolean("SendVelocity"));
setNeverUpdatePacketEvents(config.getBoolean("NeverUpdatePacketEvents", config.getBoolean("NeverUpdateProtocolLib", false)));
if (Bukkit.getPluginManager().getPlugin("packetevents") == null) {
return config;
}
setHideHeldItemFromSelf(config.getBoolean("RemoveHeldItem"));
setHideArmorFromSelf(config.getBoolean("RemoveArmor"));
setAutoUpdate(config.getBoolean("AutoUpdate"));