@Override
    public void onDisable()
    {
        saveConfig();
        if (thread != null && thread.isRunning())
        {
            //Disable thread
            thread.setRunning(false);
        }
        else
        {
        }
    }