summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-08-18 15:51:55 +0100
committerKHobbits <rob@khobbits.co.uk>2012-08-18 15:51:55 +0100
commite42f7e4ffa35f5772abb7a467ab18058854c1583 (patch)
treefff3c45269df14007872ddb63023ad44982a7a9d /EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java
parent8a9353fd098fdc123adc9f014a5a52e9a829a22d (diff)
downloadEssentials-e42f7e4ffa35f5772abb7a467ab18058854c1583.tar
Essentials-e42f7e4ffa35f5772abb7a467ab18058854c1583.tar.gz
Essentials-e42f7e4ffa35f5772abb7a467ab18058854c1583.tar.lz
Essentials-e42f7e4ffa35f5772abb7a467ab18058854c1583.tar.xz
Essentials-e42f7e4ffa35f5772abb7a467ab18058854c1583.zip
Removing EssentialsUpdate from 2.9 branch.
Development may be continued in 3.x branch.
Diffstat (limited to 'EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java')
-rw-r--r--EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java b/EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java
deleted file mode 100644
index 722fca3e1..000000000
--- a/EssentialsUpdate/src/com/earth2me/essentials/update/ModuleInfo.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.earth2me.essentials.update;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-import org.bukkit.configuration.Configuration;
-
-
-public class ModuleInfo
-{
- private final transient String url;
- private final transient String version;
- private final transient String hash;
-
- public ModuleInfo(final Configuration updateConfig, final String path)
- {
- url = updateConfig.getString(path + ".url", null);
- version = updateConfig.getString(path + ".version", null);
- hash = updateConfig.getString(path + ".hash", null);
- }
-
- public URL getUrl() throws MalformedURLException
- {
- return new URL(url);
- }
-
- public String getVersion()
- {
- return version;
- }
-
- public String getHash()
- {
- return hash;
- }
-}