Removed dependence on external GSON lib in lib/gson.jar, since GSON 2.1 is now embedded in CraftBukkit itself, used by their auto-updater added shortly before 1.1-R5 was released:

0ed1d1fdbb
This commit is contained in:
Brettflan 2012-03-11 07:39:31 -05:00
parent a888a9c5b5
commit 2c6191b73f

View File

@ -61,8 +61,9 @@ public abstract class MPlugin extends JavaPlugin
this.perm = new PermUtil(this); this.perm = new PermUtil(this);
this.persist = new Persist(this); this.persist = new Persist(this);
this.lib = new LibLoader(this); this.lib = new LibLoader(this);
if ( ! lib.require("gson.jar", "http://search.maven.org/remotecontent?filepath=com/google/code/gson/gson/2.1/gson-2.1.jar")) return false; // GSON 2.1 is now embedded in CraftBukkit, used by the auto-updater: https://github.com/Bukkit/CraftBukkit/commit/0ed1d1fdbb1e0bc09a70bc7bfdf40c1de8411665
// if ( ! lib.require("gson.jar", "http://search.maven.org/remotecontent?filepath=com/google/code/gson/gson/2.1/gson-2.1.jar")) return false;
this.gson = this.getGsonBuilder().create(); this.gson = this.getGsonBuilder().create();
this.txt = new TextUtil(); this.txt = new TextUtil();