diff --git a/pom.xml b/pom.xml index 4397932..77c6b54 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 cn.citycraft Yum - 1.7.1 + 1.7.2 Yum Minecraft 服务器插件管理系统 diff --git a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java index 01ad695..ba7e853 100644 --- a/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java +++ b/src/main/java/cn/citycraft/Yum/manager/RepositoryManager.java @@ -10,6 +10,7 @@ import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Map.Entry; import org.bukkit.Bukkit; @@ -34,7 +35,7 @@ import cn.mcraft.gson.api.reflect.TypeToken;; public class RepositoryManager { Gson gson; org.bukkit.plugin.Plugin main; - HashMap plugins; + Map plugins; List repos; @@ -154,7 +155,7 @@ public class RepositoryManager { return plugins.get(groupId + "." + artifactId); } - public HashMap getPlugins() { + public Map getPlugins() { return plugins; } @@ -171,7 +172,7 @@ public class RepositoryManager { }.getType()); } if (plugincache != null && !plugincache.isEmpty()) { - plugins = gson.fromJson(plugincache, new TypeToken>() { + plugins = gson.fromJson(plugincache, new TypeToken>() { }.getType()); } return true;