geforkt von Mirrors/Paper
Randomly generate team names for earlier commit
[17:17] _MylesC: the biggest issue you run into is bungee not handling 2 teams with same name :( http://i.imgur.com/jbDigxW.png
Dieser Commit ist enthalten in:
Ursprung
a48b906896
Commit
10961ebac6
@ -42,7 +42,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ // Paper start - Send a fake team to the client to initialize collision rule if no others exist
|
||||
+ if (!com.destroystokyo.paper.PaperConfig.enablePlayerCollisions && !iterator.hasNext()) {
|
||||
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutScoreboardTeam(new ScoreboardTeam(scoreboardserver, "collideRule"), 0));
|
||||
+ String teamName = org.apache.commons.lang3.StringUtils.left("collideRule_" + entityplayer.getWorld().random.nextInt(), 16);
|
||||
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutScoreboardTeam(new ScoreboardTeam(scoreboardserver, teamName), 0));
|
||||
+ return;
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren