mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
Changed ConsoleCommandSender to use stripColor instead of hardcoded
This commit is contained in:
parent
0e0a76625b
commit
fb30fd5fad
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…
Add table
Reference in a new issue