Add libsdisguises.noactionbar
This commit is contained in:
parent
3f0fa4e8c1
commit
8d7706b9e0
2
pom.xml
2
pom.xml
@ -5,7 +5,7 @@
|
||||
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
||||
<groupId>LibsDisguises</groupId>
|
||||
<artifactId>LibsDisguises</artifactId>
|
||||
<version>9.9.8</version>
|
||||
<version>9.9.8-SNAPSHOT</version>
|
||||
|
||||
<build>
|
||||
<defaultGoal>exec:java clean install</defaultGoal>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user