src/main/java/com/davidcubesvk/repairItem/utils/Versioner.java
/**
     * Loads and returns the server version byte.
     * @return the server version byte
     */
Loads and returns the server version byte.
@return the server version byte
Loads and returns the server version byte . @return the server version byte
private static byte loadVersion() {
        String serverVersion = Bukkit.getBukkitVersion();
        if (serverVersion.contains("1.7"))
            return V1_7;
        else if (serverVersion.contains("1.8"))
            return V1_8;
        else if (serverVersion.contains("1.9"))
            return V1_9;
        else if (serverVersion.contains("1.10"))
            return V1_10;
        else if (serverVersion.contains("1.11"))
            return V1_11;
        else if (serverVersion.contains("1.12"))
            return V1_12;
        else if (serverVersion.contains("1.13"))
            return V1_13;
        else if (serverVersion.contains("1.14"))
            return V1_14;
        else if (serverVersion.contains("1.15"))
            return V1_15;
        else if (serverVersion.contains("1.16"))
            return V1_16;
        return -1;
    }
private static byte loadVersion ( ) { String serverVersion = Bukkit . getBukkitVersion ( ) ; if ( serverVersion . contains ( "1.7" ) ) return V1_7 ; else if ( serverVersion . contains ( "1.8" ) ) return V1_8 ; else if ( serverVersion . contains ( "1.9" ) ) return V1_9 ; else if ( serverVersion . contains ( "1.10" ) ) return V1_10 ; else if ( serverVersion . contains ( "1.11" ) ) return V1_11 ; else if ( serverVersion . contains ( "1.12" ) ) return V1_12 ; else if ( serverVersion . contains ( "1.13" ) ) return V1_13 ; else if ( serverVersion . contains ( "1.14" ) ) return V1_14 ; else if ( serverVersion . contains ( "1.15" ) ) return V1_15 ; else if ( serverVersion . contains ( "1.16" ) ) return V1_16 ; return - 1 ; }
Loads and returns the server version byte.
Loads and returns the server version byte .
//The server version //Assign the version byte //Not found