mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Plugin check
This commit is contained in:
parent
ea321739a9
commit
ed99f5eba4
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user