Add libsdisguises.noactionbar
This commit is contained in:
		| @@ -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()); | ||||
|   | ||||
| @@ -110,6 +110,9 @@ permissions: | ||||
|       default: true | ||||
|     libsdisguises.scoreboardtest: | ||||
|       description: Test if the scoreboard is valid, this is a simple test. | ||||
|     libsdisguises.noactionbar: | ||||
|       description: Hides the action bar even if enabled in config | ||||
|       default: false | ||||
|     libsdisguises.seecmd: | ||||
|       description: See all commands in tab-completion | ||||
|       default: true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user