Merge pull request #2615 from open-osrs/add-default-pluginhub

This commit is contained in:
Owain van Brakel
2020-05-25 02:58:11 +02:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -347,7 +347,7 @@ public interface OpenOSRSConfig extends Config
)
default String getExternalRepositories()
{
return "OpenOSRS:https://raw.githubusercontent.com/open-osrs/plugin-hosting/master/";
return "OpenOSRS:https://raw.githubusercontent.com/open-osrs/plugin-hosting/master/;Plugin-Hub:https://raw.githubusercontent.com/owain94/OpenOSRS-RL-hub-hosting/master/";
}
@ConfigItem(
@@ -357,4 +357,4 @@ public interface OpenOSRSConfig extends Config
hidden = true
)
void setExternalRepositories(String val);
}
}

View File

@@ -682,7 +682,7 @@ public class ExternalPluginManager
catch (StringIndexOutOfBoundsException e)
{
log.error("Error loading external repositories. They have been reset.");
openOSRSConfig.setExternalRepositories("OpenOSRS:https://raw.githubusercontent.com/open-osrs/plugin-hosting/master/");
openOSRSConfig.setExternalRepositories("OpenOSRS:https://raw.githubusercontent.com/open-osrs/plugin-hosting/master/;Plugin-Hub:https://raw.githubusercontent.com/owain94/OpenOSRS-RL-hub-hosting/master/");
}
updateManager = new UpdateManager(externalPluginManager, repositories);

View File

@@ -116,7 +116,7 @@ public class RepositoryBox extends JPanel
titleActions.add(support, BorderLayout.WEST);
}
if (!name.equals("OpenOSRS"))
if (!name.equals("OpenOSRS") && !name.equals("Plugin-Hub"))
{
JLabel install = new JLabel();
install.setIcon(DELETE_ICON);