From b63df3943f9d3d588f74fb5ec4afb794c4269131 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 29 Jan 2014 15:39:12 +1300 Subject: [PATCH] Fixed the disguise blown message not displaying --- src/me/libraryaddict/disguise/DisguiseListener.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseListener.java b/src/me/libraryaddict/disguise/DisguiseListener.java index 7001f9cb..d8273a06 100644 --- a/src/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/me/libraryaddict/disguise/DisguiseListener.java @@ -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()); } } }