Fixed the disguise blown message not displaying

This commit is contained in:
libraryaddict 2014-01-29 15:39:12 +13:00
parent 9dc62406d7
commit b63df3943f

View File

@ -70,11 +70,8 @@ public class DisguiseListener implements Listener {
Disguise[] disguises = DisguiseAPI.getDisguises(event.getEntity());
if (disguises.length > 0) {
DisguiseAPI.undisguiseToAll(event.getEntity());
for (Disguise disguise : disguises) {
if (DisguiseUtilities.isDisguiseInUse(disguise) && DisguiseConfig.getDisguiseBlownMessage().length() > 0) {
((Player) event.getEntity()).sendMessage(DisguiseConfig.getDisguiseBlownMessage());
break;
}
if (DisguiseConfig.getDisguiseBlownMessage().length() > 0) {
((Player) event.getEntity()).sendMessage(DisguiseConfig.getDisguiseBlownMessage());
}
}
}