summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-16 10:20:53 +1000
committermd_5 <git@md-5.net>2018-07-16 10:20:53 +1000
commit3890544e04e1b406b97c0f098a575ecc4b8865c6 (patch)
tree69e9195408cff664309a6ac234f53769be376b96 /nms-patches
parentee3c26688e32e8dd15b30eaa8d46ada64f13c865 (diff)
downloadcraftbukkit-3890544e04e1b406b97c0f098a575ecc4b8865c6.tar
craftbukkit-3890544e04e1b406b97c0f098a575ecc4b8865c6.tar.gz
craftbukkit-3890544e04e1b406b97c0f098a575ecc4b8865c6.tar.lz
craftbukkit-3890544e04e1b406b97c0f098a575ecc4b8865c6.tar.xz
craftbukkit-3890544e04e1b406b97c0f098a575ecc4b8865c6.zip
SPIGOT-4015: Make CraftTeam tie into backing prefix/suffix
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/ScoreboardTeam.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/nms-patches/ScoreboardTeam.patch b/nms-patches/ScoreboardTeam.patch
deleted file mode 100644
index 1ca2e1dc..00000000
--- a/nms-patches/ScoreboardTeam.patch
+++ /dev/null
@@ -1,47 +0,0 @@
---- a/net/minecraft/server/ScoreboardTeam.java
-+++ b/net/minecraft/server/ScoreboardTeam.java
-@@ -36,7 +36,7 @@
- }
-
- public String getDisplayName() {
-- return this.d;
-+ return this.prefix + this.d + this.suffix; // CraftBukkit
- }
-
- public IChatBaseComponent d() {
-@@ -165,4 +165,35 @@
- public EnumChatFormat getColor() {
- return this.k;
- }
-+
-+ // CraftBukkit start
-+ private String prefix = "";
-+ private String suffix = "";
-+
-+ public String getPrefix() {
-+ return prefix;
-+ }
-+
-+ public void setPrefix(String prefix) {
-+ if (prefix == null) {
-+ throw new IllegalArgumentException("Prefix cannot be null");
-+ }
-+
-+ this.prefix = prefix;
-+ this.a.handleTeamChanged(this);
-+ }
-+
-+ public String getSuffix() {
-+ return suffix;
-+ }
-+
-+ public void setSuffix(String suffix) {
-+ if (prefix == null) {
-+ throw new IllegalArgumentException("Suffix cannot be null");
-+ }
-+
-+ this.suffix = suffix;
-+ this.a.handleTeamChanged(this);
-+ }
-+ // CraftBukkit end
- }