Cleanup and fixes

This commit is contained in:
Draycia committed 2020-11-29 18:41:54 -08:00
1 parent 8a7ab5f858
commit 32f5802208
5 files changed
+5 -3

No files matched your search

+2
View File
@@ -8,6 +8,8 @@ description = 'CarbonChat-Bukkit'
dependencies {
compile 'org.spongepowered:configurate-yaml:4.0.0-SNAPSHOT'
compile 'org.spongepowered:configurate-hocon:4.0.0-SNAPSHOT'
compile 'org.yaml:snakeyaml:1.27'
compile 'net.kyori:adventure-text-serializer-bungeecord:4.0.0-SNAPSHOT'
compile 'net.kyori:adventure-platform-bukkit:4.0.0-SNAPSHOT'
@@ -36,7 +36,7 @@ public class ItemLinkHandler {
for (final Pattern pattern : event.channel().itemLinkPatterns()) {
if (pattern.matcher(event.originalMessage()).find()) {
final TextComponent component = (TextComponent) event.component()
.replaceFirstText(pattern, input -> itemComponent);
.replaceText(configurer -> configurer.once().match(pattern).replacement(itemComponent));
event.component(component);
break;
@@ -207,7 +207,7 @@ public class BukkitPlayerUser implements PlayerUser, ForwardingAudience.Single {
}
@Override
public void customChatColor(@Nullable final TextColor customChatColor, final boolean fromRemote) {
public void customChatColor(final @Nullable TextColor customChatColor, final boolean fromRemote) {
this.customChatColor = customChatColor;
if (!fromRemote) {
+1
View File
@@ -12,6 +12,7 @@ dependencies {
compileOnly 'com.google.code.gson:gson:2.8.0'
compile 'org.spongepowered:configurate-hocon:4.0.0-SNAPSHOT'
compile 'org.spongepowered:configurate-yaml:4.0.0-SNAPSHOT'
compile 'co.aikar:idb-core:1.0.0-SNAPSHOT'
compile 'com.zaxxer:HikariCP:2.4.1'
-1
View File
@@ -20,7 +20,6 @@ subprojects {
apply plugin: 'org.checkerframework'
repositories {
mavenLocal()
mavenCentral()
maven { url = 'https://mvn.intellectualsites.com/content/repositories/snapshots' }