v1_12_2/src/main/java/net/wesjd/anvilgui/version/VersionMatcher.java
public VersionWrapper match() {
        final String serverVersion = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3].substring(1);
        try {
            return (VersionWrapper) Class.forName(getClass().getPackage().getName() + ".Wrapper" + serverVersion).newInstance();
        } catch (IllegalAccessException | InstantiationException exception) {
            throw new IllegalStateException("Failed to instantiate version wrapper for version " + serverVersion, exception);
        } catch (ClassNotFoundException exception) {
            throw new IllegalStateException("AnvilGUI does not support server version \"" + serverVersion + "\"", exception);
        }
    }
/**
     * Matches the server version to it's {@link VersionWrapper}
     *
     * @return The {@link VersionWrapper} for this server
     * @throws IllegalStateException If the version wrapper failed to be instantiated or is unable to be found
     */
Matches the server version to it's  VersionWrapper
@return The  VersionWrapper for this server
@throws IllegalStateException If the version wrapper failed to be instantiated or is unable to be found
Matches the server version to it ' s VersionWrapper @return The VersionWrapper for this server @throws IllegalStateException If the version wrapper failed to be instantiated or is unable to be found
public VersionWrapper match() {
        final String serverVersion = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3].substring(1);
        try {
            return (VersionWrapper) Class.forName(getClass().getPackage().getName() + ".Wrapper" + serverVersion).newInstance();
        } catch (IllegalAccessException | InstantiationException exception) {
            throw new IllegalStateException("Failed to instantiate version wrapper for version " + serverVersion, exception);
        } catch (ClassNotFoundException exception) {
            throw new IllegalStateException("AnvilGUI does not support server version \"" + serverVersion + "\"", exception);
        }
    }
public VersionWrapper match ( ) { final String serverVersion = Bukkit . getServer ( ) . getClass ( ) . getPackage ( ) . getName ( ) . split ( "\\." ) [ 3 ] . substring ( 1 ) ; try { return ( VersionWrapper ) Class . forName ( getClass ( ) . getPackage ( ) . getName ( ) + ".Wrapper" + serverVersion ) . newInstance ( ) ; } catch ( IllegalAccessException | InstantiationException exception ) { throw new IllegalStateException ( "Failed to instantiate version wrapper for version " + serverVersion , exception ) ; } catch ( ClassNotFoundException exception ) { throw new IllegalStateException ( "AnvilGUI does not support server version \"" + serverVersion + "\"" , exception ) ; } }
Matches the server version to it's {@link VersionWrapper}
 @return The {@link VersionWrapper} for this server
 @throws IllegalStateException If the version wrapper failed to be instantiated or is unable to be found
Matches the server version to it ' s { @link VersionWrapper } @return The { @link VersionWrapper } for this server @throws IllegalStateException If the version wrapper failed to be instantiated or is unable to be found