From 7483b4d27619a0e5b3a01a2f150f9b0a0e226eeb Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 10 Jan 2014 09:58:31 +1100 Subject: [PATCH] Shuffle some internal stuff to API so that modules will compile --- api/pom.xml | 6 ++++++ {proxy => api}/src/main/java/net/md_5/bungee/Util.java | 5 ----- .../java/net/md_5/bungee/chat/BaseComponentSerializer.java | 0 .../main/java/net/md_5/bungee/chat/ComponentSerializer.java | 0 .../java/net/md_5/bungee/chat/TextComponentSerializer.java | 0 .../md_5/bungee/chat/TranslatableComponentSerializer.java | 0 .../main/java/net/md_5/bungee/command/PlayerCommand.java | 4 ++++ proxy/pom.xml | 6 ------ 8 files changed, 10 insertions(+), 11 deletions(-) rename {proxy => api}/src/main/java/net/md_5/bungee/Util.java (92%) rename {proxy => api}/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java (100%) rename {proxy => api}/src/main/java/net/md_5/bungee/chat/ComponentSerializer.java (100%) rename {proxy => api}/src/main/java/net/md_5/bungee/chat/TextComponentSerializer.java (100%) rename {proxy => api}/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java (100%) rename {proxy => api}/src/main/java/net/md_5/bungee/command/PlayerCommand.java (96%) diff --git a/api/pom.xml b/api/pom.xml index cf923879..0c45e316 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -19,6 +19,12 @@ API implemented by the Elastic Portal Suite + + com.google.code.gson + gson + 2.2.4 + compile + net.md-5 bungeecord-config diff --git a/proxy/src/main/java/net/md_5/bungee/Util.java b/api/src/main/java/net/md_5/bungee/Util.java similarity index 92% rename from proxy/src/main/java/net/md_5/bungee/Util.java rename to api/src/main/java/net/md_5/bungee/Util.java index a68f8da8..143a29e9 100644 --- a/proxy/src/main/java/net/md_5/bungee/Util.java +++ b/api/src/main/java/net/md_5/bungee/Util.java @@ -1,12 +1,7 @@ package net.md_5.bungee; import com.google.common.base.Joiner; -import com.google.gson.Gson; -import com.google.gson.JsonObject; import java.net.InetSocketAddress; -import java.util.ArrayList; -import java.util.List; -import net.md_5.bungee.api.ChatColor; /** * Series of utility classes to perform various operations. diff --git a/proxy/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java b/api/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java similarity index 100% rename from proxy/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java rename to api/src/main/java/net/md_5/bungee/chat/BaseComponentSerializer.java diff --git a/proxy/src/main/java/net/md_5/bungee/chat/ComponentSerializer.java b/api/src/main/java/net/md_5/bungee/chat/ComponentSerializer.java similarity index 100% rename from proxy/src/main/java/net/md_5/bungee/chat/ComponentSerializer.java rename to api/src/main/java/net/md_5/bungee/chat/ComponentSerializer.java diff --git a/proxy/src/main/java/net/md_5/bungee/chat/TextComponentSerializer.java b/api/src/main/java/net/md_5/bungee/chat/TextComponentSerializer.java similarity index 100% rename from proxy/src/main/java/net/md_5/bungee/chat/TextComponentSerializer.java rename to api/src/main/java/net/md_5/bungee/chat/TextComponentSerializer.java diff --git a/proxy/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java b/api/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java similarity index 100% rename from proxy/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java rename to api/src/main/java/net/md_5/bungee/chat/TranslatableComponentSerializer.java diff --git a/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java b/api/src/main/java/net/md_5/bungee/command/PlayerCommand.java similarity index 96% rename from proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java rename to api/src/main/java/net/md_5/bungee/command/PlayerCommand.java index 1d41f642..c9f95766 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/PlayerCommand.java +++ b/api/src/main/java/net/md_5/bungee/command/PlayerCommand.java @@ -9,6 +9,10 @@ import net.md_5.bungee.api.connection.ProxiedPlayer; import net.md_5.bungee.api.plugin.Command; import net.md_5.bungee.api.plugin.TabExecutor; +/** + * @deprecated internal use only + */ +@Deprecated public abstract class PlayerCommand extends Command implements TabExecutor { diff --git a/proxy/pom.xml b/proxy/pom.xml index 82fa9556..aa555ecd 100644 --- a/proxy/pom.xml +++ b/proxy/pom.xml @@ -23,12 +23,6 @@ - - com.google.code.gson - gson - 2.2.4 - compile - io.netty netty-codec-http