mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-11 22:16:57 +00:00
added ability to send command denied message as action bar in bukkit and waterfall
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>eu.endermite.commandwhitelist</groupId>
|
||||
<artifactId>CommandWhitelist</artifactId>
|
||||
<version>2.10.0</version>
|
||||
<version>2.11.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>Waterfall</artifactId>
|
||||
|
||||
+8
-1
@@ -38,7 +38,14 @@ public class BungeeChatEventListener implements Listener {
|
||||
command,
|
||||
configCache.prefix + CommandWhitelistWaterfall.getCommandDeniedMessage(label)
|
||||
);
|
||||
audiences.player(player).sendMessage(message);
|
||||
switch (configCache.messageType) {
|
||||
case CHAT:
|
||||
audiences.player(player).sendMessage(message);
|
||||
break;
|
||||
case ACTIONBAR:
|
||||
audiences.player(player).sendActionBar(message);
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user