0.2h Parsed string type
This commit is contained in:
parent
629fe09513
commit
e75d52c584
@ -0,0 +1,32 @@
|
||||
package com.massivecraft.massivecore.command.type.primitive;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import com.massivecraft.massivecore.util.Txt;
|
||||
|
||||
public class TypeStringParsed extends TypeString
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
// INSTANCE & CONSTRUCT
|
||||
// -------------------------------------------- //
|
||||
|
||||
private static TypeStringParsed i = new TypeStringParsed();
|
||||
public static TypeStringParsed get() { return i; }
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
// -------------------------------------------- //
|
||||
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return "colored text";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String read(String arg, CommandSender sender)
|
||||
{
|
||||
return Txt.parse(super.read(arg, sender));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user