geforkt von Mirrors/Paper
Send Bukkit scoreboards as well as vanilla boards
Fixes GH-384
Dieser Commit ist enthalten in:
Ursprung
c5f0256084
Commit
9f95fbcd24
@ -35,7 +35,7 @@ diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/
|
|||||||
index 91e52f9..f133b32 100644
|
index 91e52f9..f133b32 100644
|
||||||
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
||||||
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
||||||
@@ -241,6 +241,14 @@ public abstract class PlayerList {
|
@@ -241,6 +241,13 @@ public abstract class PlayerList {
|
||||||
public void sendScoreboard(ScoreboardServer scoreboardserver, EntityPlayer entityplayer) {
|
public void sendScoreboard(ScoreboardServer scoreboardserver, EntityPlayer entityplayer) {
|
||||||
HashSet hashset = Sets.newHashSet();
|
HashSet hashset = Sets.newHashSet();
|
||||||
Iterator iterator = scoreboardserver.getTeams().iterator();
|
Iterator iterator = scoreboardserver.getTeams().iterator();
|
||||||
@ -44,7 +44,6 @@ index 91e52f9..f133b32 100644
|
|||||||
+ if (!com.destroystokyo.paper.PaperConfig.enablePlayerCollisions && !iterator.hasNext()) {
|
+ if (!com.destroystokyo.paper.PaperConfig.enablePlayerCollisions && !iterator.hasNext()) {
|
||||||
+ String teamName = org.apache.commons.lang3.StringUtils.left("collideRule_" + entityplayer.getWorld().random.nextInt(), 16);
|
+ String teamName = org.apache.commons.lang3.StringUtils.left("collideRule_" + entityplayer.getWorld().random.nextInt(), 16);
|
||||||
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutScoreboardTeam(new ScoreboardTeam(scoreboardserver, teamName), 0));
|
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutScoreboardTeam(new ScoreboardTeam(scoreboardserver, teamName), 0));
|
||||||
+ return;
|
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren