mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Fix improper bitwise logic in DiscordUtil#getRoleColorFormat
This commit is contained in:
parent
b516db669c
commit
feed2d6a45
1 changed files with 2 additions and 3 deletions
|
@ -144,11 +144,10 @@ public final class DiscordUtil {
|
|||
* @return The bukkit color code or blank string.
|
||||
*/
|
||||
public static String getRoleColorFormat(Member member) {
|
||||
final int rawColor = member.getColorRaw();
|
||||
|
||||
if (rawColor == Role.DEFAULT_COLOR_RAW) {
|
||||
if (member.getColorRaw() == Role.DEFAULT_COLOR_RAW) {
|
||||
return "";
|
||||
}
|
||||
final int rawColor = 0xff000000 | member.getColorRaw();
|
||||
|
||||
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_16_1_R01)) {
|
||||
// Essentials' FormatUtil allows us to not have to use bungee's chatcolor since bukkit's own one doesn't support rgb
|
||||
|
|
Loading…
Reference in a new issue