13
0
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:
Zach Brown 2016-07-30 18:13:56 -05:00
Ursprung a48b906896
Commit 10961ebac6

Datei anzeigen

@ -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