The latest CraftBukkit builds have changed their compiled-in GSON lib's package name. Rather than us switching back to using a separate GSON lib again (with two effectively identical copies of GSON ending up loaded and wasting server resources), I'm simply switching Factions to point to CraftBukkit's refactored GSON package name instead.
In line with that, I've removed the Bukkit and GSON libs and added in CraftBukkit as a lib.
This commit is contained in:
parent
b27cb6a7fb
commit
3bcdb87bf3
BIN
lib/bukkit.jar
BIN
lib/bukkit.jar
Binary file not shown.
BIN
lib/craftbukkit.jar
Normal file
BIN
lib/craftbukkit.jar
Normal file
Binary file not shown.
BIN
lib/gson.jar
BIN
lib/gson.jar
Binary file not shown.
@ -10,7 +10,7 @@ import java.util.Map.Entry;
|
|||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken;
|
||||||
import com.massivecraft.factions.integration.LWCFeatures;
|
import com.massivecraft.factions.integration.LWCFeatures;
|
||||||
import com.massivecraft.factions.struct.Relation;
|
import com.massivecraft.factions.struct.Relation;
|
||||||
import com.massivecraft.factions.util.AsciiCompass;
|
import com.massivecraft.factions.util.AsciiCompass;
|
||||||
|
@ -6,7 +6,7 @@ import java.util.Map;
|
|||||||
import java.util.concurrent.ConcurrentSkipListMap;
|
import java.util.concurrent.ConcurrentSkipListMap;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken;
|
||||||
import com.massivecraft.factions.struct.Role;
|
import com.massivecraft.factions.struct.Role;
|
||||||
import com.massivecraft.factions.zcore.persist.PlayerEntityCollection;
|
import com.massivecraft.factions.zcore.persist.PlayerEntityCollection;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
|
||||||
import com.google.gson.reflect.TypeToken;
|
import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken;
|
||||||
import com.massivecraft.factions.util.MiscUtil;
|
import com.massivecraft.factions.util.MiscUtil;
|
||||||
import com.massivecraft.factions.zcore.persist.EntityCollection;
|
import com.massivecraft.factions.zcore.persist.EntityCollection;
|
||||||
import com.massivecraft.factions.zcore.util.TextUtil;
|
import com.massivecraft.factions.zcore.util.TextUtil;
|
||||||
|
@ -37,8 +37,8 @@ import com.massivecraft.factions.util.MyLocationTypeAdapter;
|
|||||||
import com.massivecraft.factions.zcore.MPlugin;
|
import com.massivecraft.factions.zcore.MPlugin;
|
||||||
import com.massivecraft.factions.zcore.util.TextUtil;
|
import com.massivecraft.factions.zcore.util.TextUtil;
|
||||||
|
|
||||||
import com.google.gson.GsonBuilder;
|
import org.bukkit.craftbukkit.libs.com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken;
|
||||||
|
|
||||||
|
|
||||||
public class P extends MPlugin
|
public class P extends MPlugin
|
||||||
|
@ -9,15 +9,15 @@ import java.util.Set;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.google.gson.JsonArray;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonArray;
|
||||||
import com.google.gson.JsonDeserializationContext;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
|
||||||
import com.google.gson.JsonDeserializer;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParseException;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonParseException;
|
||||||
import com.google.gson.JsonPrimitive;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonPrimitive;
|
||||||
import com.google.gson.JsonSerializationContext;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonSerializationContext;
|
||||||
import com.google.gson.JsonSerializer;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonSerializer;
|
||||||
import com.massivecraft.factions.FLocation;
|
import com.massivecraft.factions.FLocation;
|
||||||
import com.massivecraft.factions.P;
|
import com.massivecraft.factions.P;
|
||||||
|
|
||||||
|
@ -5,13 +5,13 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
import com.massivecraft.factions.P;
|
import com.massivecraft.factions.P;
|
||||||
|
|
||||||
import com.google.gson.JsonDeserializationContext;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializationContext;
|
||||||
import com.google.gson.JsonDeserializer;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonDeserializer;
|
||||||
import com.google.gson.JsonElement;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParseException;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonParseException;
|
||||||
import com.google.gson.JsonSerializationContext;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonSerializationContext;
|
||||||
import com.google.gson.JsonSerializer;
|
import org.bukkit.craftbukkit.libs.com.google.gson.JsonSerializer;
|
||||||
|
|
||||||
|
|
||||||
public class MyLocationTypeAdapter implements JsonDeserializer<LazyLocation>, JsonSerializer<LazyLocation>
|
public class MyLocationTypeAdapter implements JsonDeserializer<LazyLocation>, JsonSerializer<LazyLocation>
|
||||||
|
@ -10,9 +10,9 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import org.bukkit.craftbukkit.libs.com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import org.bukkit.craftbukkit.libs.com.google.gson.GsonBuilder;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import org.bukkit.craftbukkit.libs.com.google.gson.reflect.TypeToken;
|
||||||
import com.massivecraft.factions.zcore.persist.EM;
|
import com.massivecraft.factions.zcore.persist.EM;
|
||||||
import com.massivecraft.factions.zcore.persist.SaveTask;
|
import com.massivecraft.factions.zcore.persist.SaveTask;
|
||||||
import com.massivecraft.factions.zcore.util.LibLoader;
|
import com.massivecraft.factions.zcore.util.LibLoader;
|
||||||
|
@ -5,7 +5,7 @@ import java.lang.reflect.Type;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import org.bukkit.craftbukkit.libs.com.google.gson.Gson;
|
||||||
import com.massivecraft.factions.zcore.util.DiscUtil;
|
import com.massivecraft.factions.zcore.util.DiscUtil;
|
||||||
import com.massivecraft.factions.zcore.util.TextUtil;
|
import com.massivecraft.factions.zcore.util.TextUtil;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import java.util.Set;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import org.bukkit.craftbukkit.libs.com.google.gson.Gson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The PlayerEntityCollection is an EntityCollection with the extra features
|
* The PlayerEntityCollection is an EntityCollection with the extra features
|
||||||
|
Loading…
Reference in New Issue
Block a user