mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Cleanup and fixes
This commit is contained in:
1 parent
8a7ab5f858
commit
32f5802208
5 files changed
+5
-3
No files matched your search
@@ -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'
|
||||
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -20,7 +20,6 @@ subprojects {
|
||||
apply plugin: 'org.checkerframework'
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
|
||||
maven { url = 'https://mvn.intellectualsites.com/content/repositories/snapshots' }
|
||||
|
||||
Reference in new issue
Block a user