mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-11-25 20:15:43 +01:00
made it compile
This commit is contained in:
parent
35738f59d9
commit
38d9185232
@ -164,10 +164,10 @@ public class ExpansionCloudManager {
|
||||
plugin.getLogger().info("Fetching available expansion information...");
|
||||
|
||||
plugin.getServer().getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||
final Map<String, CloudExpansion> data;
|
||||
final Map<String, CloudExpansion> data = new HashMap<>();;
|
||||
|
||||
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(API_URL).openStream()))) {
|
||||
data = GSON.fromJson(reader, new TypeToken<Map<String, CloudExpansion>>() {}.getType());
|
||||
data.putAll(GSON.fromJson(reader, new TypeToken<Map<String, CloudExpansion>>() {}.getType()));
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user