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());
|
Disguise[] disguises = DisguiseAPI.getDisguises(event.getEntity());
|
||||||
if (disguises.length > 0) {
|
if (disguises.length > 0) {
|
||||||
DisguiseAPI.undisguiseToAll(event.getEntity());
|
DisguiseAPI.undisguiseToAll(event.getEntity());
|
||||||
for (Disguise disguise : disguises) {
|
if (DisguiseConfig.getDisguiseBlownMessage().length() > 0) {
|
||||||
if (DisguiseUtilities.isDisguiseInUse(disguise) && DisguiseConfig.getDisguiseBlownMessage().length() > 0) {
|
|
||||||
((Player) event.getEntity()).sendMessage(DisguiseConfig.getDisguiseBlownMessage());
|
((Player) event.getEntity()).sendMessage(DisguiseConfig.getDisguiseBlownMessage());
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user