mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixes #1344
This commit is contained in:
parent
69267983b9
commit
6bae1098bc
2
pom.xml
2
pom.xml
@ -110,7 +110,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.thebusybiscuit</groupId>
|
||||
<artifactId>CS-CoreLib2</artifactId>
|
||||
<version>0.8.1</version>
|
||||
<version>0.8.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -38,6 +38,7 @@ public class ContributionsConnector extends GitHubConnector {
|
||||
aliases.put("BurningBrimstone", "Bluedevil74");
|
||||
aliases.put("bverhoeven", "soczol");
|
||||
aliases.put("ramdon-person", "ramdon_person");
|
||||
aliases.put("mohkamfer", "citBabY");
|
||||
}
|
||||
|
||||
private final String prefix;
|
||||
|
@ -25,11 +25,14 @@ public final class ChatUtils {
|
||||
|
||||
String[] segments = string.toLowerCase().split("_");
|
||||
|
||||
builder.append(Character.toUpperCase(segments[0].charAt(0)) + segments[0].substring(1));
|
||||
builder.append(Character.toUpperCase(segments[0].charAt(0)));
|
||||
builder.append(segments[0].substring(1));
|
||||
|
||||
for (int i = 1; i < segments.length; i++) {
|
||||
String segment = segments[i];
|
||||
builder.append(" " + Character.toUpperCase(segment.charAt(0)) + segment.substring(1));
|
||||
builder.append(" ");
|
||||
builder.append(Character.toUpperCase(segment.charAt(0)));
|
||||
builder.append(segment.substring(1));
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user