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() 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( @ConfigItem(
@@ -357,4 +357,4 @@ public interface OpenOSRSConfig extends Config
hidden = true hidden = true
) )
void setExternalRepositories(String val); void setExternalRepositories(String val);
} }

View File

@@ -682,7 +682,7 @@ public class ExternalPluginManager
catch (StringIndexOutOfBoundsException e) catch (StringIndexOutOfBoundsException e)
{ {
log.error("Error loading external repositories. They have been reset."); 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); updateManager = new UpdateManager(externalPluginManager, repositories);

View File

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