MCPcopy Create free account
hub / github.com/Teneted/Tenet / getModSize

Method getModSize

src/main/java/com/mohistmc/api/PlayerAPI.java:35–38  ·  view source on GitHub ↗
(Player player)

Source from the content-addressed store, hash-verified

33
34 // Don't count the default number of mods
35 public static int getModSize(Player player) {
36 SocketAddress socketAddress = getRemoteAddress(player);
37 return mods.get(socketAddress) == null ? 0 : mods.get(socketAddress) - 2;
38 }
39
40 public static String getModlist(Player player) {
41 SocketAddress socketAddress = getRemoteAddress(player);

Callers

nothing calls this directly

Calls 2

getRemoteAddressMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected