@return The version section of the NMS package, like v1_15_R1
()
| 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 |
no test coverage detected