2016-11-21 22:51:27 +01:00
|
|
|
From 3c8a747e4c7fb30a356120b0098afdc7752fb0c5 Mon Sep 17 00:00:00 2001
|
2016-02-17 02:55:05 +01:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
2016-03-01 00:09:49 +01:00
|
|
|
Date: Thu, 3 Mar 2016 02:21:58 -0600
|
2016-02-17 02:55:05 +01: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-11-21 22:51:27 +01:00
|
|
|
index a9ccc8a..ef3980f 100644
|
2016-02-17 02:55:05 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2016-11-21 22:51:27 +01:00
|
|
|
@@ -1314,6 +1314,18 @@ public final class CraftServer implements Server {
|
2016-02-17 02:55:05 +01:00
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public void broadcast(BaseComponent component) {
|
2016-04-14 05:18:46 +02:00
|
|
|
+ this.spigot.broadcast(component);
|
2016-02-17 02:55:05 +01:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void broadcast(BaseComponent... components) {
|
2016-04-14 05:18:46 +02:00
|
|
|
+ this.spigot.broadcast(components);
|
2016-02-17 02:55:05 +01: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-11-21 22:51:27 +01:00
|
|
|
index e1b04cb..1d4e8b2 100644
|
2016-02-17 02:55:05 +01:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2016-04-14 05:18:46 +02:00
|
|
|
@@ -156,6 +156,23 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2016-02-17 02:55:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(BaseComponent component) {
|
2016-04-14 05:18:46 +02:00
|
|
|
+ this.spigot.sendMessage(component);
|
2016-02-17 02:55:05 +01:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(BaseComponent... components) {
|
2016-04-14 05:18:46 +02:00
|
|
|
+ this.spigot.sendMessage(components);
|
|
|
|
+ }
|
2016-02-17 02:55:05 +01:00
|
|
|
+
|
2016-04-14 05:18:46 +02:00
|
|
|
+ @Override
|
|
|
|
+ public void sendMessage(net.md_5.bungee.api.ChatMessageType position, BaseComponent... components) {
|
|
|
|
+ this.spigot.sendMessage(position, components);
|
2016-02-17 02:55:05 +01:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
@Override
|
|
|
|
public String getDisplayName() {
|
|
|
|
return getHandle().displayName;
|
|
|
|
--
|
2016-11-17 03:23:38 +01:00
|
|
|
2.10.2
|
2016-02-17 02:55:05 +01:00
|
|
|
|