Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 08:10:09 +01:00
Check if the player is ported, fix NullPointerException post 876 on spigotmc.org (#374)
Dieser Commit ist enthalten in:
Ursprung
8e64fb8c21
Commit
0374da573b
@ -35,6 +35,8 @@ public class PPSSubCmd extends ViaSubCommand {
|
|||||||
long max = 0;
|
long max = 0;
|
||||||
|
|
||||||
for (Player p : Bukkit.getOnlinePlayers()) {
|
for (Player p : Bukkit.getOnlinePlayers()) {
|
||||||
|
if (!ViaVersion.getInstance().isPorted(p))
|
||||||
|
continue;
|
||||||
int playerVersion = ViaVersion.getInstance().getPlayerVersion(p);
|
int playerVersion = ViaVersion.getInstance().getPlayerVersion(p);
|
||||||
if (!playerVersions.containsKey(playerVersion))
|
if (!playerVersions.containsKey(playerVersion))
|
||||||
playerVersions.put(playerVersion, new HashSet<String>());
|
playerVersions.put(playerVersion, new HashSet<String>());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren