Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public enum ActionType {
"- '[minibroadcast] <message>'"),
MESSAGE("[message]", "Send a message to the menu viewer",
"- [message] <message>"),
ACTION_BAR("[actionbar]", "Send a action bar message to the menu viewer", "- [actionbar] <message>"),
LOG("[log]", "Log a message to the console", "- [log] <level> <message>"),
BROADCAST("[broadcast]", "Broadcast a message to the server", "- '[broadcast] <message>"),
CHAT("[chat]", "Send a chat message as the player performing the action", "- '[chat] <message>"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import com.extendedclip.deluxemenus.utils.StringUtils;
import com.extendedclip.deluxemenus.utils.VersionHelper;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -132,6 +134,10 @@ public void run() {
player.sendMessage(StringUtils.color(executable));
break;

case ACTION_BAR:
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText(StringUtils.color(executable)));
break;

case LOG:
final String[] logParts = executable.split(" ", 2);

Expand Down