Merge pull request #2615 from open-osrs/add-default-pluginhub
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user