Skip to content

Commit cd123cc

Browse files
committed
Updated formatting
1 parent d59ab4b commit cd123cc

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

src/main/java/com/perceivedev/clicktpa/JSONMessage.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public class JSONMessage {
3939

4040
String styleName;
4141
switch (style) {
42-
case MAGIC:
43-
styleName = "obfuscated";
44-
break;
45-
case UNDERLINE:
46-
styleName = "underlined";
47-
break;
48-
default:
49-
styleName = style.name().toLowerCase();
50-
break;
42+
case MAGIC:
43+
styleName = "obfuscated";
44+
break;
45+
case UNDERLINE:
46+
styleName = "underlined";
47+
break;
48+
default:
49+
styleName = style.name().toLowerCase();
50+
break;
5151
}
5252

5353
builder.put(style, styleName);
@@ -132,9 +132,10 @@ public JsonObject toJSON() {
132132
public String toString() {
133133
return toJSON().toString();
134134
}
135-
135+
136136
/**
137-
* Converts this JSONMessage object to the legacy formatting system, which uses formatting codes (like &6, &l, &4, etc.)
137+
* Converts this JSONMessage object to the legacy formatting system, which
138+
* uses formatting codes (like &6, &l, &4, etc.)
138139
*/
139140
public String toLegacy() {
140141
StringBuilder output = new StringBuilder();
@@ -183,7 +184,7 @@ public void subtitle(Player... players) {
183184
ReflectionHelper.sendPacket(ReflectionHelper.createSubtitlePacket(toString()), players);
184185

185186
}
186-
187+
187188
/**
188189
* Sends an action bar message
189190
*

0 commit comments

Comments
 (0)