Optimize
This commit is contained in:
		| @@ -4,7 +4,6 @@ import com.comphenix.protocol.wrappers.WrappedGameProfile; | ||||
| import com.comphenix.protocol.wrappers.nbt.NbtCompound; | ||||
| import com.comphenix.protocol.wrappers.nbt.NbtFactory; | ||||
| import me.libraryaddict.disguise.DisguiseConfig; | ||||
| import me.libraryaddict.disguise.LibsDisguises; | ||||
| import me.libraryaddict.disguise.disguisetypes.Disguise; | ||||
| import me.libraryaddict.disguise.disguisetypes.MetaIndex; | ||||
| import me.libraryaddict.disguise.disguisetypes.PlayerDisguise; | ||||
|   | ||||
| @@ -23,12 +23,6 @@ import java.util.Set; | ||||
|  | ||||
| public class PacketListenerSounds extends PacketAdapter { | ||||
|  | ||||
|     /** | ||||
|      * This is a fix for the stupidity that is "I can't separate the sounds from the sounds the player | ||||
|      * heard, and the sounds of the entity tracker heard" | ||||
|      */ | ||||
|     private static boolean cancelSound; | ||||
|  | ||||
|     public PacketListenerSounds(LibsDisguises plugin) { | ||||
|         super(plugin, ListenerPriority.NORMAL, Server.NAMED_SOUND_EFFECT); | ||||
|     } | ||||
|   | ||||
| @@ -47,7 +47,7 @@ public class ParamInfoManager { | ||||
|     } | ||||
|  | ||||
|     public static ParamInfo getParamInfo(WatcherMethod method) { | ||||
|         if (method.getName().equals("setSoundGroup")) { | ||||
|         if (method.getName().equalsIgnoreCase("setSoundGroup")) { | ||||
|             return getParamInfoSoundGroup(); | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -30,7 +30,6 @@ import org.bukkit.entity.LivingEntity; | ||||
| import org.bukkit.entity.Player; | ||||
| import org.bukkit.inventory.EntityEquipment; | ||||
| import org.bukkit.inventory.ItemStack; | ||||
| import org.bukkit.permissions.PermissionAttachmentInfo; | ||||
| import org.bukkit.potion.PotionEffectType; | ||||
|  | ||||
| import java.lang.invoke.MethodHandle; | ||||
|   | ||||
| @@ -2,7 +2,6 @@ package me.libraryaddict.disguise.utilities.parser; | ||||
|  | ||||
| import me.libraryaddict.disguise.DisguiseConfig; | ||||
| import me.libraryaddict.disguise.disguisetypes.DisguiseType; | ||||
| import org.bukkit.command.CommandSender; | ||||
| import org.bukkit.entity.Ageable; | ||||
| import org.bukkit.entity.Animals; | ||||
| import org.bukkit.entity.Monster; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user