2016-06-23 02:43:02 +00:00
|
|
|
From bec2920701b7661f4dfd3bc75d44f685a7832d0c Mon Sep 17 00:00:00 2001
|
2016-02-17 01:55:05 +00:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2016-02-29 23:09:49 +00:00
|
|
|
Date: Thu, 3 Mar 2016 02:21:58 -0600
|
2016-02-17 01:55:05 +00:00
|
|
|
Subject: [PATCH] Graduate bungeecord chat API from spigot subclasses
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2016-06-09 03:57:14 +00:00
|
|
|
index 07a69d7..274b83b 100644
|
2016-02-17 01:55:05 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2016-05-20 22:32:50 +00:00
|
|
|
@@ -1314,6 +1314,18 @@ public final class CraftServer implements Server {
|
2016-02-17 01:55:05 +00:00
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public void broadcast(BaseComponent component) {
|
2016-04-14 03:18:46 +00:00
|
|
|
+ this.spigot.broadcast(component);
|
2016-02-17 01:55:05 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void broadcast(BaseComponent... components) {
|
2016-04-14 03:18:46 +00:00
|
|
|
+ this.spigot.broadcast(components);
|
2016-02-17 01:55:05 +00:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
@Override
|
|
|
|
@Deprecated
|
|
|
|
public OfflinePlayer getOfflinePlayer(String name) {
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2016-06-23 02:18:41 +00:00
|
|
|
index 9955de3..88412f8 100644
|
2016-02-17 01:55:05 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2016-04-14 03:18:46 +00:00
|
|
|
@@ -156,6 +156,23 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2016-02-17 01:55:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(BaseComponent component) {
|
2016-04-14 03:18:46 +00:00
|
|
|
+ this.spigot.sendMessage(component);
|
2016-02-17 01:55:05 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(BaseComponent... components) {
|
2016-04-14 03:18:46 +00:00
|
|
|
+ this.spigot.sendMessage(components);
|
|
|
|
+ }
|
2016-02-17 01:55:05 +00:00
|
|
|
+
|
2016-04-14 03:18:46 +00:00
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(net.md_5.bungee.api.ChatMessageType position, BaseComponent... components) {
|
|
|
|
+ this.spigot.sendMessage(position, components);
|
2016-02-17 01:55:05 +00:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
@Override
|
|
|
|
public String getDisplayName() {
|
|
|
|
return getHandle().displayName;
|
|
|
|
--
|
2016-06-23 02:18:41 +00:00
|
|
|
2.9.0
|
2016-02-17 01:55:05 +00:00
|
|
|
|