Skip to content

VersionsUtils

Fulminazzo edited this page Oct 2, 2023 · 1 revision

VersionsUtils are a series of functions used to check which Minecraft version your plugin is being run on. Among the most common functions like is1_20(), is1_15(), is1_8() etc... it exists a simplified one that will accept a number as version:

/**
 * Check on which version your plugin is being run.
 * @param version: the number of the version.
 * @return true if the version matches or is higher than the one specified.
 */
public static boolean is1_(int version);

Clone this wiki locally