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

Method getModlist

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

Source from the content-addressed store, hash-verified

38 }
39
40 public static String getModlist(Player player) {
41 SocketAddress socketAddress = getRemoteAddress(player);
42 return modlist.get(socketAddress) == null ? "null" : modlist.get(socketAddress);
43 }
44
45 public static Boolean hasMod(Player player, String modid){
46 return getModlist(player).contains(modid);

Callers 1

hasModMethod · 0.95

Calls 2

getRemoteAddressMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected