Skip to content
Snippets Groups Projects
Commit 797b828a authored by tobias's avatar tobias
Browse files

Fix Plugins#load(String, boolean)

parent 8772f126
No related branches found
No related tags found
No related merge requests found
name: PlayWall name: PlayWall
version: 5.0.1 version: 5.0.1
build: 28 build: 29
identifier: de.tobias.playpad identifier: de.tobias.playpad
main: de.tobias.playpad.PlayPadMain main: de.tobias.playpad.PlayPadMain
author: Tobias Ullerich author: Tobias Ullerich
......
...@@ -23,6 +23,7 @@ public class Plugins { ...@@ -23,6 +23,7 @@ public class Plugins {
public static List<Plugin> load(String pluginInfoURL, boolean fetch) throws IOException { public static List<Plugin> load(String pluginInfoURL, boolean fetch) throws IOException {
if (plugins.isEmpty() || fetch) { if (plugins.isEmpty() || fetch) {
plugins.clear();
URL url = new URL(pluginInfoURL); URL url = new URL(pluginInfoURL);
FileConfiguration cfg = YamlConfiguration.loadConfiguration(url.openStream()); FileConfiguration cfg = YamlConfiguration.loadConfiguration(url.openStream());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment