mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-11-22 14:28:46 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6a38e82bea
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>cn.citycraft</groupId>
|
||||
<artifactId>Yum</artifactId>
|
||||
<version>1.7.1</version>
|
||||
<version>1.7.2</version>
|
||||
<name>Yum</name>
|
||||
<description>Minecraft 服务器插件管理系统</description>
|
||||
<build>
|
||||
|
@ -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<String, PluginInfo> plugins;
|
||||
Map<String, PluginInfo> plugins;
|
||||
|
||||
List<String> repos;
|
||||
|
||||
@ -154,7 +155,7 @@ public class RepositoryManager {
|
||||
return plugins.get(groupId + "." + artifactId);
|
||||
}
|
||||
|
||||
public HashMap<String, PluginInfo> getPlugins() {
|
||||
public Map<String, PluginInfo> getPlugins() {
|
||||
return plugins;
|
||||
}
|
||||
|
||||
@ -171,7 +172,7 @@ public class RepositoryManager {
|
||||
}.getType());
|
||||
}
|
||||
if (plugincache != null && !plugincache.isEmpty()) {
|
||||
plugins = gson.fromJson(plugincache, new TypeToken<HashMap<String, PluginInfo>>() {
|
||||
plugins = gson.fromJson(plugincache, new TypeToken<Map<String, PluginInfo>>() {
|
||||
}.getType());
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user