2015-05-29 09:35:21 +00:00
|
|
|
From 88ea28b160d00ad290a7cb851d25ea324b1b0365 Mon Sep 17 00:00:00 2001
|
2014-12-14 21:54:10 +00:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Sat, 13 Dec 2014 12:59:14 +1100
|
|
|
|
Subject: [PATCH] BungeeCord Chat API
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/pom.xml b/pom.xml
|
2015-05-28 10:02:04 +00:00
|
|
|
index c3b3d47..c90fd6e 100644
|
2014-12-14 21:54:10 +00:00
|
|
|
--- a/pom.xml
|
|
|
|
+++ b/pom.xml
|
2015-05-28 10:02:04 +00:00
|
|
|
@@ -83,6 +83,14 @@
|
|
|
|
<version>1.15</version>
|
2015-01-05 03:32:01 +00:00
|
|
|
<scope>compile</scope>
|
2014-12-14 21:54:10 +00:00
|
|
|
</dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>net.md-5</groupId>
|
|
|
|
+ <artifactId>bungeecord-chat</artifactId>
|
|
|
|
+ <version>1.8-SNAPSHOT</version>
|
|
|
|
+ <type>jar</type>
|
|
|
|
+ <scope>compile</scope>
|
|
|
|
+ </dependency>
|
2015-01-05 03:32:01 +00:00
|
|
|
+
|
2014-12-14 21:54:10 +00:00
|
|
|
<!-- testing -->
|
|
|
|
<dependency>
|
2015-01-05 03:32:01 +00:00
|
|
|
<groupId>junit</groupId>
|
2014-12-14 21:54:10 +00:00
|
|
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
|
|
|
index 57b2794..cf4ab1d 100644
|
|
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
|
|
@@ -916,6 +916,24 @@ public interface Server extends PluginMessageRecipient {
|
|
|
|
{
|
|
|
|
throw new UnsupportedOperationException( "Not supported yet." );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sends the component to the player
|
|
|
|
+ *
|
|
|
|
+ * @param component the components to send
|
|
|
|
+ */
|
|
|
|
+ public void broadcast(net.md_5.bungee.api.chat.BaseComponent component) {
|
|
|
|
+ throw new UnsupportedOperationException("Not supported yet.");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sends an array of components as a single message to the player
|
|
|
|
+ *
|
|
|
|
+ * @param components the components to send
|
|
|
|
+ */
|
|
|
|
+ public void broadcast(net.md_5.bungee.api.chat.BaseComponent... components) {
|
|
|
|
+ throw new UnsupportedOperationException("Not supported yet.");
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
Spigot spigot();
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
2015-05-29 09:35:21 +00:00
|
|
|
index 40fbb53..b86b85d 100644
|
2014-12-14 21:54:10 +00:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
2015-05-29 09:35:21 +00:00
|
|
|
@@ -1102,6 +1102,24 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
2014-12-14 21:54:10 +00:00
|
|
|
{
|
|
|
|
throw new UnsupportedOperationException( "Not supported yet." );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sends the component to the player
|
|
|
|
+ *
|
|
|
|
+ * @param component the components to send
|
|
|
|
+ */
|
|
|
|
+ public void sendMessage(net.md_5.bungee.api.chat.BaseComponent component) {
|
|
|
|
+ throw new UnsupportedOperationException("Not supported yet.");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sends an array of components as a single message to the player
|
|
|
|
+ *
|
|
|
|
+ * @param components the components to send
|
|
|
|
+ */
|
|
|
|
+ public void sendMessage(net.md_5.bungee.api.chat.BaseComponent... components) {
|
|
|
|
+ throw new UnsupportedOperationException("Not supported yet.");
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
|
|
|
|
Spigot spigot();
|
|
|
|
--
|
2015-05-25 12:05:40 +00:00
|
|
|
2.1.4
|
2014-12-14 21:54:10 +00:00
|
|
|
|