mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 23:01:01 +01:00
Changed ConsoleCommandSender to use stripColor instead of hardcoded
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
d4374e647f
commit
6132abb1f5
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
|
||||
package org.bukkit.command;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Server;
|
||||
|
||||
/**
|
||||
|
@ -14,7 +15,7 @@ public class ConsoleCommandSender implements CommandSender {
|
|||
}
|
||||
|
||||
public void sendMessage(String message) {
|
||||
System.out.println(message.replaceAll("(?i)\u00A7[0-F]", ""));
|
||||
System.out.println(ChatColor.stripColor(message));
|
||||
}
|
||||
|
||||
public boolean isOp() {
|
||||
|
|
Loading…
Reference in a new issue