mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Fixed the disguise blown message not displaying
This commit is contained in:
parent
9dc62406d7
commit
b63df3943f
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user