mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +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 {
|
dependencies {
|
||||||
compile 'org.spongepowered:configurate-yaml:4.0.0-SNAPSHOT'
|
compile 'org.spongepowered:configurate-yaml:4.0.0-SNAPSHOT'
|
||||||
compile 'org.spongepowered:configurate-hocon: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-text-serializer-bungeecord:4.0.0-SNAPSHOT'
|
||||||
compile 'net.kyori:adventure-platform-bukkit: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()) {
|
for (final Pattern pattern : event.channel().itemLinkPatterns()) {
|
||||||
if (pattern.matcher(event.originalMessage()).find()) {
|
if (pattern.matcher(event.originalMessage()).find()) {
|
||||||
final TextComponent component = (TextComponent) event.component()
|
final TextComponent component = (TextComponent) event.component()
|
||||||
.replaceFirstText(pattern, input -> itemComponent);
|
.replaceText(configurer -> configurer.once().match(pattern).replacement(itemComponent));
|
||||||
event.component(component);
|
event.component(component);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
+1
-1
@@ -207,7 +207,7 @@ public class BukkitPlayerUser implements PlayerUser, ForwardingAudience.Single {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void customChatColor(@Nullable final TextColor customChatColor, final boolean fromRemote) {
|
public void customChatColor(final @Nullable TextColor customChatColor, final boolean fromRemote) {
|
||||||
this.customChatColor = customChatColor;
|
this.customChatColor = customChatColor;
|
||||||
|
|
||||||
if (!fromRemote) {
|
if (!fromRemote) {
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ dependencies {
|
|||||||
compileOnly 'com.google.code.gson:gson:2.8.0'
|
compileOnly 'com.google.code.gson:gson:2.8.0'
|
||||||
|
|
||||||
compile 'org.spongepowered:configurate-hocon:4.0.0-SNAPSHOT'
|
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 'co.aikar:idb-core:1.0.0-SNAPSHOT'
|
||||||
compile 'com.zaxxer:HikariCP:2.4.1'
|
compile 'com.zaxxer:HikariCP:2.4.1'
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ subprojects {
|
|||||||
apply plugin: 'org.checkerframework'
|
apply plugin: 'org.checkerframework'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
||||||
maven { url = 'https://mvn.intellectualsites.com/content/repositories/snapshots' }
|
maven { url = 'https://mvn.intellectualsites.com/content/repositories/snapshots' }
|
||||||
|
|||||||
Reference in new issue
Block a user