0.2h Parsed string type

This commit is contained in:
BuildTools 2016-03-17 16:57:44 +01:00 committed by Olof Larsson
parent 629fe09513
commit e75d52c584

View File

@ -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));
}
}