1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00
This commit is contained in:
TheBusyBiscuit 2020-01-03 16:59:11 +01:00
parent 69267983b9
commit 6bae1098bc
3 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

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

View File

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