mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-29 12:37:40 +01:00
Revert message colorization
This commit is contained in:
parent
db862b38c9
commit
9c867dee28
@ -1,9 +1,11 @@
|
|||||||
package me.lucko.luckperms.constants;
|
package me.lucko.luckperms.constants;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import me.lucko.luckperms.commands.Sender;
|
import me.lucko.luckperms.commands.Sender;
|
||||||
import me.lucko.luckperms.commands.Util;
|
import me.lucko.luckperms.commands.Util;
|
||||||
|
|
||||||
@SuppressWarnings("SpellCheckingInspection")
|
@SuppressWarnings("SpellCheckingInspection")
|
||||||
|
@AllArgsConstructor
|
||||||
public enum Message {
|
public enum Message {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -221,11 +223,6 @@ public enum Message {
|
|||||||
private String message;
|
private String message;
|
||||||
private boolean showPrefix;
|
private boolean showPrefix;
|
||||||
|
|
||||||
Message(String message, boolean showPrefix) {
|
|
||||||
this.message = Util.color(message);
|
|
||||||
this.showPrefix = showPrefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return message;
|
return message;
|
||||||
@ -233,9 +230,9 @@ public enum Message {
|
|||||||
|
|
||||||
public void send(Sender sender, Object... objects) {
|
public void send(Sender sender, Object... objects) {
|
||||||
if (showPrefix) {
|
if (showPrefix) {
|
||||||
sender.sendMessage(PREFIX + String.format(message, objects));
|
sender.sendMessage(Util.color(PREFIX + String.format(message, objects)));
|
||||||
} else {
|
} else {
|
||||||
sender.sendMessage(String.format(message, objects));
|
sender.sendMessage(Util.color(String.format(message, objects)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user