public final class CommandUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getOwnerName(java.lang.Object owner)
Get the name of the given owner object.
|
static java.util.function.Function<java.lang.String,?> |
messageFunction(com.sk89q.worldedit.extension.platform.Actor sender)
Return a function that accepts a string to send a message to the
given sender.
|
static java.lang.String |
replaceColorMacros(java.lang.String str)
Replace color macros in a string.
|
public static java.lang.String replaceColorMacros(java.lang.String str)
str - the stringpublic static java.lang.String getOwnerName(@Nullable
java.lang.Object owner)
owner - the owner objectpublic static java.util.function.Function<java.lang.String,?> messageFunction(com.sk89q.worldedit.extension.platform.Actor sender)
sender - the sender