Add libsdisguises.noactionbar

This commit is contained in:
libraryaddict
2020-03-03 11:08:34 +13:00
parent 3f0fa4e8c1
commit 8d7706b9e0
3 changed files with 5 additions and 1 deletions

View File

@@ -175,6 +175,7 @@ public abstract class Disguise {
actionBarTicks = 0;
if (DisguiseConfig.isNotifyPlayerDisguised() && getEntity() instanceof Player &&
!getEntity().hasPermission("libsdisguises.noactionbar") &&
DisguiseAPI.getDisguise(getEntity()) == Disguise.this) {
((Player) getEntity()).spigot().sendMessage(ChatMessageType.ACTION_BAR,
new ComponentBuilder(LibsMsg.ACTION_BAR_MESSAGE.get(getType().toReadable())).create());