mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:44:58 +00:00
Add color code support for Discord bridge
This commit is contained in:
parent
cb7f603928
commit
5c2e785669
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import me.StevenLawson.TotalFreedomMod.config.MainConfig;
|
|||
import me.StevenLawson.TotalFreedomMod.player.PlayerList;
|
||||
import me.StevenLawson.TotalFreedomMod.player.PlayerRank;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.javacord.api.DiscordApi;
|
||||
import org.javacord.api.DiscordApiBuilder;
|
||||
|
@ -84,7 +85,7 @@ public class DiscordBridge {
|
|||
format = format.replace("{TAG}", author.getDiscriminatedName());
|
||||
format = format.replace("{USERNAME}", author.getName());
|
||||
|
||||
Bukkit.broadcastMessage(String.format(format, content));
|
||||
Bukkit.broadcastMessage(ChatColor.translateAlternateColorCodes('&', String.format(format, content)));
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue