Publish 1.0.0.2 to add reset to the chat color parser
This commit is contained in:
parent
dbacec9b47
commit
c3ed34322d
4 changed files with 14 additions and 4 deletions
|
@ -23,7 +23,8 @@ public class ChatColor {
|
|||
Bold,
|
||||
Italic,
|
||||
Strikethrough,
|
||||
Crazy
|
||||
Crazy,
|
||||
Reset
|
||||
}
|
||||
public static char CODE = '§';
|
||||
public static String BLACK = build("0");
|
||||
|
@ -164,6 +165,10 @@ public class ChatColor {
|
|||
{
|
||||
return CRAZY;
|
||||
}
|
||||
case Reset:
|
||||
{
|
||||
return RESET+WHITE;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return RESET+CRAZY;
|
||||
|
|
|
@ -10,12 +10,17 @@ public class ChatColorFactory {
|
|||
public String build(){
|
||||
return built;
|
||||
}
|
||||
public void reset()
|
||||
{
|
||||
built="";
|
||||
append(ChatColor.resetChat());
|
||||
}
|
||||
public ColorBuilder(){}
|
||||
}
|
||||
private ColorBuilder instance;
|
||||
public ChatColorFactory reset()
|
||||
{
|
||||
instance.append(ChatColor.resetChat());
|
||||
instance.reset();
|
||||
return this;
|
||||
}
|
||||
public ChatColorFactory set(ChatColor.ColorOptions option)
|
||||
|
|
Reference in a new issue