// Path: 1.13_2.13.46/src/com/github/joelgodofwar/sps/util/Ansi.java
// public class Ansi {
// 	public static final ChatColor	AQUA				= ChatColor.AQUA;
// 	public static final ChatColor	BLACK				= ChatColor.BLACK;
// 	public static final ChatColor	BLUE				= ChatColor.BLUE;
// 	public static final ChatColor	DARK_AQUA			= ChatColor.DARK_AQUA;
// 	public static final ChatColor	DARK_BLUE			= ChatColor.DARK_BLUE;
// 	public static final ChatColor	DARK_GRAY			= ChatColor.DARK_GRAY;
// 	public static final ChatColor	DARK_GREEN			= ChatColor.DARK_GREEN;
// 	public static final ChatColor	DARK_PURPLE			= ChatColor.DARK_PURPLE;
// 	public static final ChatColor	DARK_RED			= ChatColor.DARK_RED;
// 	public static final ChatColor	GOLD				= ChatColor.GOLD;
// 	public static final ChatColor	GRAY				= ChatColor.GRAY;
// 	public static final ChatColor	GREEN				= ChatColor.GREEN;
// 	public static final ChatColor	MAGENTA				= ChatColor.LIGHT_PURPLE;
// 	public static final ChatColor	RED					= ChatColor.RED;
// 	public static final ChatColor	WHITE				= ChatColor.WHITE;
// 	public static final ChatColor	YELLOW				= ChatColor.YELLOW;
// 
// 	public static final ChatColor	BOLD				= ChatColor.BOLD;
// 	public static final ChatColor	ITALIC				= ChatColor.ITALIC;
// 	public static final ChatColor	MAGIC				= ChatColor.MAGIC;
// 	public static final ChatColor	RESET				= ChatColor.RESET;
// 	public static final ChatColor	STRIKETHROUGH		= ChatColor.STRIKETHROUGH;
// 	public static final ChatColor	UNDERLINE			= ChatColor.UNDERLINE;
// 	
// 
// 	
// }


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.lang.math.NumberUtils;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.github.joelgodofwar.sps.util.Ansi;

package com.github.joelgodofwar.sps.api;




public class UpdateChecker {
    private static int project;
    private URL checkURL;
    private String newVersion;
    private String newMinVers;
    private String oldVersion;
    private String oldMinVers;
    @SuppressWarnings("unused")
	private JavaPlugin plugin;
	String[] strVersionNew; // [0]=1.14 [1]=1.0.0.?
	String[] strVersionCurrent; // [0]=1.14 [1]=1.0.0.?
	String URLString = "https://github.com/JoelGodOfwar/SinglePlayerSleep/raw/master/versioncheck/";
	String URLFile = "/version.txt";


    public UpdateChecker(JavaPlugin plugin, int projectID) {
        this.plugin = plugin;
        project = projectID;
        oldVersion = plugin.getDescription().getVersion();
        try {
        	checkURL = new URL(URLString + oldVersion.substring(0, 4) + URLFile);
        }catch(MalformedURLException e) {

// Path: 1.13_2.13.46/src/com/github/joelgodofwar/sps/util/Ansi.java
// public class Ansi {
// 	public static final ChatColor	AQUA				= ChatColor.AQUA;
// 	public static final ChatColor	BLACK				= ChatColor.BLACK;
// 	public static final ChatColor	BLUE				= ChatColor.BLUE;
// 	public static final ChatColor	DARK_AQUA			= ChatColor.DARK_AQUA;
// 	public static final ChatColor	DARK_BLUE			= ChatColor.DARK_BLUE;
// 	public static final ChatColor	DARK_GRAY			= ChatColor.DARK_GRAY;
// 	public static final ChatColor	DARK_GREEN			= ChatColor.DARK_GREEN;
// 	public static final ChatColor	DARK_PURPLE			= ChatColor.DARK_PURPLE;
// 	public static final ChatColor	DARK_RED			= ChatColor.DARK_RED;
// 	public static final ChatColor	GOLD				= ChatColor.GOLD;
// 	public static final ChatColor	GRAY				= ChatColor.GRAY;
// 	public static final ChatColor	GREEN				= ChatColor.GREEN;
// 	public static final ChatColor	MAGENTA				= ChatColor.LIGHT_PURPLE;
// 	public static final ChatColor	RED					= ChatColor.RED;
// 	public static final ChatColor	WHITE				= ChatColor.WHITE;
// 	public static final ChatColor	YELLOW				= ChatColor.YELLOW;
// 
// 	public static final ChatColor	BOLD				= ChatColor.BOLD;
// 	public static final ChatColor	ITALIC				= ChatColor.ITALIC;
// 	public static final ChatColor	MAGIC				= ChatColor.MAGIC;
// 	public static final ChatColor	RESET				= ChatColor.RESET;
// 	public static final ChatColor	STRIKETHROUGH		= ChatColor.STRIKETHROUGH;
// 	public static final ChatColor	UNDERLINE			= ChatColor.UNDERLINE;
// 	
// 
// 	
// }


// Path: 1.13_2.13.46/src/com/github/joelgodofwar/sps/api/UpdateChecker.java
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.apache.commons.lang.math.NumberUtils;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.github.joelgodofwar.sps.util.Ansi;

package com.github.joelgodofwar.sps.api;




public class UpdateChecker {
    private static int project;
    private URL checkURL;
    private String newVersion;
    private String newMinVers;
    private String oldVersion;
    private String oldMinVers;
    @SuppressWarnings("unused")
	private JavaPlugin plugin;
	String[] strVersionNew; // [0]=1.14 [1]=1.0.0.?
	String[] strVersionCurrent; // [0]=1.14 [1]=1.0.0.?
	String URLString = "https://github.com/JoelGodOfwar/SinglePlayerSleep/raw/master/versioncheck/";
	String URLFile = "/version.txt";


    public UpdateChecker(JavaPlugin plugin, int projectID) {
        this.plugin = plugin;
        project = projectID;
        oldVersion = plugin.getDescription().getVersion();
        try {
        	checkURL = new URL(URLString + oldVersion.substring(0, 4) + URLFile);
        }catch(MalformedURLException e) {

            Bukkit.getLogger().warning(Ansi.RED + "Could not connect to update server.");
