mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-02-12 18:42:13 +01:00
Metrics: only track each plugin once
This commit is contained in:
parent
7a8fce224e
commit
dd85904642
@ -86,13 +86,7 @@ public class Statistics {
|
||||
|
||||
for (PacketListener listener : ProtocolLibrary.getProtocolManager().getPacketListeners()) {
|
||||
String name = PacketAdapter.getPluginName(listener);
|
||||
|
||||
// Increment occurence
|
||||
if (!users.containsKey(name)) {
|
||||
users.put(name, 1);
|
||||
} else {
|
||||
users.put(name, users.get(name) + 1);
|
||||
}
|
||||
users.put(name, 1);
|
||||
}
|
||||
|
||||
return users;
|
||||
|
Loading…
Reference in New Issue
Block a user