Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Merge branch 'master' into dev
Dieser Commit ist enthalten in:
Commit
24ab0d8590
@ -36,7 +36,7 @@ public class PPSSubCmd extends ViaSubCommand {
|
|||||||
if (!playerVersions.containsKey(playerVersion))
|
if (!playerVersions.containsKey(playerVersion))
|
||||||
playerVersions.put(playerVersion, new HashSet<String>());
|
playerVersions.put(playerVersion, new HashSet<String>());
|
||||||
UserConnection uc = Via.getManager().getConnection(p.getUUID());
|
UserConnection uc = Via.getManager().getConnection(p.getUUID());
|
||||||
if (uc.getPacketsPerSecond() > -1) {
|
if (uc != null && uc.getPacketsPerSecond() > -1) {
|
||||||
playerVersions.get(playerVersion).add(p.getName() + " (" + uc.getPacketsPerSecond() + " PPS)");
|
playerVersions.get(playerVersion).add(p.getName() + " (" + uc.getPacketsPerSecond() + " PPS)");
|
||||||
totalPackets += uc.getPacketsPerSecond();
|
totalPackets += uc.getPacketsPerSecond();
|
||||||
if (uc.getPacketsPerSecond() > max) {
|
if (uc.getPacketsPerSecond() > max) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren