Attempt to add prefixes to adminchat

This commit is contained in:
2023-08-29 16:06:16 -05:00
parent 2c7440804c
commit 2a2152603b
5 changed files with 23 additions and 9 deletions

View File

@ -284,7 +284,7 @@ public class PlexUtils implements PlexBase
});
}
public static List<UUID> adminChat(String senderName, String message, UUID... ignore)
public static List<UUID> adminChat(String senderName, String prefix, String message, UUID... ignore)
{
List<UUID> sent = Lists.newArrayList();
for (Player player : Bukkit.getOnlinePlayers())
@ -295,7 +295,7 @@ public class PlexUtils implements PlexBase
}
if (player.hasPermission("plex.adminchat"))
{
player.sendMessage(PlexUtils.messageComponent("adminChatFormat", senderName, message).replaceText(ChatListener.URL_REPLACEMENT_CONFIG));
player.sendMessage(PlexUtils.messageComponent("adminChatFormat", senderName, prefix, message).replaceText(ChatListener.URL_REPLACEMENT_CONFIG));
sent.add(player.getUniqueId());
}
}