MCPcopy Create free account
hub / github.com/boxbeam/RedLib / getNMSVersion

Method getNMSVersion

src/redempt/redlib/nms/NMSHelper.java:39–45  ·  view source on GitHub ↗

@return The version section of the NMS package, like v1_15_R1

()

Source from the content-addressed store, hash-verified

37 * @return The version section of the NMS package, like v1_15_R1
38 */
39 public static String getNMSVersion() {
40 if (version == null) {
41 String[] split = Bukkit.getServer().getClass().getPackage().getName().split("\\.");
42 version = split[split.length - 1];
43 }
44 return version;
45 }
46
47 /**
48 * Unwraps an array of arguments, replacing NMSObjects with their wrapped values

Callers 2

deserializeObjectMethod · 0.95
toJSONMethod · 0.95

Calls 3

splitMethod · 0.80
getClassMethod · 0.80
getNameMethod · 0.45

Tested by

no test coverage detected