mcore5
This commit is contained in:
parent
822db7a308
commit
000a9e628a
@ -1,6 +1,6 @@
|
|||||||
name: mcore4
|
name: mcore5
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
main: com.massivecraft.mcore4.MCore
|
main: com.massivecraft.mcore5.MCore
|
||||||
load: startup
|
load: startup
|
||||||
permissions:
|
permissions:
|
||||||
# -------------------------------------------- #
|
# -------------------------------------------- #
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.usys.cmd.CmdUsys;
|
import com.massivecraft.mcore5.usys.cmd.CmdUsys;
|
||||||
import com.massivecraft.mcore4.util.MUtil;
|
import com.massivecraft.mcore5.util.MUtil;
|
||||||
|
|
||||||
public class Conf extends SimpleConfig
|
public class Conf extends SimpleConfig
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -14,11 +14,11 @@ import org.bukkit.event.player.PlayerQuitEvent;
|
|||||||
import org.bukkit.event.player.PlayerRespawnEvent;
|
import org.bukkit.event.player.PlayerRespawnEvent;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.event.MCoreAfterPlayerRespawnEvent;
|
import com.massivecraft.mcore5.event.MCoreAfterPlayerRespawnEvent;
|
||||||
import com.massivecraft.mcore4.event.MCoreAfterPlayerTeleportEvent;
|
import com.massivecraft.mcore5.event.MCoreAfterPlayerTeleportEvent;
|
||||||
import com.massivecraft.mcore4.event.MCorePlayerLeaveEvent;
|
import com.massivecraft.mcore5.event.MCorePlayerLeaveEvent;
|
||||||
import com.massivecraft.mcore4.store.Coll;
|
import com.massivecraft.mcore5.store.Coll;
|
||||||
import com.massivecraft.mcore4.store.PlayerColl;
|
import com.massivecraft.mcore5.store.PlayerColl;
|
||||||
|
|
||||||
public class InternalListener implements Listener
|
public class InternalListener implements Listener
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
public class Lang
|
public class Lang
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
@ -7,20 +7,20 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.adapter.InventoryAdapter;
|
import com.massivecraft.mcore5.adapter.InventoryAdapter;
|
||||||
import com.massivecraft.mcore4.adapter.ItemStackAdapter;
|
import com.massivecraft.mcore5.adapter.ItemStackAdapter;
|
||||||
import com.massivecraft.mcore4.adapter.MongoURIAdapter;
|
import com.massivecraft.mcore5.adapter.MongoURIAdapter;
|
||||||
import com.massivecraft.mcore4.adapter.PSAdapter;
|
import com.massivecraft.mcore5.adapter.PSAdapter;
|
||||||
import com.massivecraft.mcore4.store.Coll;
|
import com.massivecraft.mcore5.store.Coll;
|
||||||
import com.massivecraft.mcore4.store.Db;
|
import com.massivecraft.mcore5.store.Db;
|
||||||
import com.massivecraft.mcore4.store.MStore;
|
import com.massivecraft.mcore5.store.MStore;
|
||||||
import com.massivecraft.mcore4.usys.AspectColl;
|
import com.massivecraft.mcore5.usys.AspectColl;
|
||||||
import com.massivecraft.mcore4.usys.MultiverseColl;
|
import com.massivecraft.mcore5.usys.MultiverseColl;
|
||||||
import com.massivecraft.mcore4.usys.cmd.CmdUsys;
|
import com.massivecraft.mcore5.usys.cmd.CmdUsys;
|
||||||
import com.massivecraft.mcore4.util.PlayerUtil;
|
import com.massivecraft.mcore5.util.PlayerUtil;
|
||||||
import com.massivecraft.mcore4.xlib.gson.Gson;
|
import com.massivecraft.mcore5.xlib.gson.Gson;
|
||||||
import com.massivecraft.mcore4.xlib.gson.GsonBuilder;
|
import com.massivecraft.mcore5.xlib.gson.GsonBuilder;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.MongoURI;
|
import com.massivecraft.mcore5.xlib.mongodb.MongoURI;
|
||||||
|
|
||||||
public class MCore extends MPlugin
|
public class MCore extends MPlugin
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
@ -9,12 +9,12 @@ import org.bukkit.command.ConsoleCommandSender;
|
|||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.integration.Integration;
|
import com.massivecraft.mcore5.integration.Integration;
|
||||||
import com.massivecraft.mcore4.integration.IntegrationFeatures;
|
import com.massivecraft.mcore5.integration.IntegrationFeatures;
|
||||||
import com.massivecraft.mcore4.store.Coll;
|
import com.massivecraft.mcore5.store.Coll;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
import com.massivecraft.mcore4.xlib.gson.Gson;
|
import com.massivecraft.mcore5.xlib.gson.Gson;
|
||||||
import com.massivecraft.mcore4.xlib.gson.GsonBuilder;
|
import com.massivecraft.mcore5.xlib.gson.GsonBuilder;
|
||||||
|
|
||||||
public abstract class MPlugin extends JavaPlugin implements Listener
|
public abstract class MPlugin extends JavaPlugin implements Listener
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -16,8 +16,8 @@ import org.bukkit.block.Block;
|
|||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
import com.massivecraft.mcore4.xlib.gson.annotations.SerializedName;
|
import com.massivecraft.mcore5.xlib.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PS stands for PhysicalState.
|
* PS stands for PhysicalState.
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.util.Perm;
|
import com.massivecraft.mcore5.util.Perm;
|
||||||
|
|
||||||
public enum Permission
|
public enum Permission
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
public interface Predictate<T>
|
public interface Predictate<T>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4;
|
package com.massivecraft.mcore5;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.accessor.Accessor;
|
import com.massivecraft.mcore5.store.accessor.Accessor;
|
||||||
import com.massivecraft.mcore4.util.DiscUtil;
|
import com.massivecraft.mcore5.util.DiscUtil;
|
||||||
|
|
||||||
public class SimpleConfig
|
public class SimpleConfig
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
|
|
||||||
@ -6,14 +6,14 @@ import org.bukkit.craftbukkit.inventory.CraftInventoryCustom;
|
|||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializer;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonObject;
|
import com.massivecraft.mcore5.xlib.gson.JsonObject;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonParseException;
|
import com.massivecraft.mcore5.xlib.gson.JsonParseException;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonPrimitive;
|
import com.massivecraft.mcore5.xlib.gson.JsonPrimitive;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializer;
|
||||||
|
|
||||||
public class InventoryAdapter implements JsonDeserializer<Inventory>, JsonSerializer<Inventory>
|
public class InventoryAdapter implements JsonDeserializer<Inventory>, JsonSerializer<Inventory>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
@ -10,13 +10,13 @@ import org.bukkit.craftbukkit.inventory.CraftItemStack;
|
|||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializer;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonObject;
|
import com.massivecraft.mcore5.xlib.gson.JsonObject;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonParseException;
|
import com.massivecraft.mcore5.xlib.gson.JsonParseException;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializer;
|
||||||
|
|
||||||
public class ItemStackAdapter implements JsonDeserializer<ItemStack>, JsonSerializer<ItemStack>
|
public class ItemStackAdapter implements JsonDeserializer<ItemStack>, JsonSerializer<ItemStack>
|
||||||
{
|
{
|
@ -1,15 +1,15 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializer;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonParseException;
|
import com.massivecraft.mcore5.xlib.gson.JsonParseException;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonPrimitive;
|
import com.massivecraft.mcore5.xlib.gson.JsonPrimitive;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonSerializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonSerializer;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.MongoURI;
|
import com.massivecraft.mcore5.xlib.mongodb.MongoURI;
|
||||||
|
|
||||||
public class MongoURIAdapter implements JsonDeserializer<MongoURI>, JsonSerializer<MongoURI>
|
public class MongoURIAdapter implements JsonDeserializer<MongoURI>, JsonSerializer<MongoURI>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import net.minecraft.server.NBTBase;
|
import net.minecraft.server.NBTBase;
|
||||||
import net.minecraft.server.NBTTagByte;
|
import net.minecraft.server.NBTTagByte;
|
||||||
@ -18,10 +18,10 @@ import java.util.Collection;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonArray;
|
import com.massivecraft.mcore5.xlib.gson.JsonArray;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonObject;
|
import com.massivecraft.mcore5.xlib.gson.JsonObject;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonPrimitive;
|
import com.massivecraft.mcore5.xlib.gson.JsonPrimitive;
|
||||||
|
|
||||||
public class NbtGsonConverter
|
public class NbtGsonConverter
|
||||||
{
|
{
|
@ -1,15 +1,15 @@
|
|||||||
package com.massivecraft.mcore4.adapter;
|
package com.massivecraft.mcore5.adapter;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.PS;
|
import com.massivecraft.mcore5.PS;
|
||||||
import com.massivecraft.mcore4.xlib.gson.Gson;
|
import com.massivecraft.mcore5.xlib.gson.Gson;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializationContext;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializationContext;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonDeserializer;
|
import com.massivecraft.mcore5.xlib.gson.JsonDeserializer;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonParseException;
|
import com.massivecraft.mcore5.xlib.gson.JsonParseException;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonPrimitive;
|
import com.massivecraft.mcore5.xlib.gson.JsonPrimitive;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.MongoURI;
|
import com.massivecraft.mcore5.xlib.mongodb.MongoURI;
|
||||||
|
|
||||||
public class PSAdapter implements JsonDeserializer<PS>
|
public class PSAdapter implements JsonDeserializer<PS>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4.cmd;
|
package com.massivecraft.mcore5.cmd;
|
||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public class BukkitGlueCommand extends Command
|
public class BukkitGlueCommand extends Command
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd;
|
package com.massivecraft.mcore5.cmd;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ARInteger;
|
import com.massivecraft.mcore5.cmd.arg.ARInteger;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public class HelpCommand extends MCommand
|
public class HelpCommand extends MCommand
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd;
|
package com.massivecraft.mcore5.cmd;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
@ -11,15 +11,15 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.command.SimpleCommandMap;
|
import org.bukkit.command.SimpleCommandMap;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.Lang;
|
import com.massivecraft.mcore5.Lang;
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ArgReader;
|
import com.massivecraft.mcore5.cmd.arg.ArgReader;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ArgResult;
|
import com.massivecraft.mcore5.cmd.arg.ArgResult;
|
||||||
import com.massivecraft.mcore4.cmd.req.IReq;
|
import com.massivecraft.mcore5.cmd.req.IReq;
|
||||||
import com.massivecraft.mcore4.cmd.req.ReqHasPerm;
|
import com.massivecraft.mcore5.cmd.req.ReqHasPerm;
|
||||||
import com.massivecraft.mcore4.util.BukkitCommandUtil;
|
import com.massivecraft.mcore5.util.BukkitCommandUtil;
|
||||||
import com.massivecraft.mcore4.util.Perm;
|
import com.massivecraft.mcore5.util.Perm;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public abstract class MCommand
|
public abstract class MCommand
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd;
|
package com.massivecraft.mcore5.cmd;
|
||||||
|
|
||||||
public enum VisibilityMode
|
public enum VisibilityMode
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public abstract class ARAbstractPrimitive<T> implements ArgReader<T>
|
public abstract class ARAbstractPrimitive<T> implements ArgReader<T>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public abstract class ARAbstractSelect<T> implements ArgReader<T>
|
public abstract class ARAbstractSelect<T> implements ArgReader<T>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public abstract class ARAbstractStringMatch implements ArgReader<String>
|
public abstract class ARAbstractStringMatch implements ArgReader<String>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.Permission;
|
import com.massivecraft.mcore5.Permission;
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.usys.Aspect;
|
import com.massivecraft.mcore5.usys.Aspect;
|
||||||
import com.massivecraft.mcore4.usys.AspectColl;
|
import com.massivecraft.mcore5.usys.AspectColl;
|
||||||
|
|
||||||
public class ARAspect extends ARAbstractSelect<Aspect>
|
public class ARAspect extends ARAbstractSelect<Aspect>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARBoolean extends ARAbstractPrimitive<Boolean>
|
public class ARBoolean extends ARAbstractPrimitive<Boolean>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARByte extends ARAbstractPrimitive<Byte>
|
public class ARByte extends ARAbstractPrimitive<Byte>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARDouble extends ARAbstractPrimitive<Double>
|
public class ARDouble extends ARAbstractPrimitive<Double>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.bukkit.World.Environment;
|
import org.bukkit.World.Environment;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.MUtil;
|
import com.massivecraft.mcore5.util.MUtil;
|
||||||
|
|
||||||
public class AREnvironment extends ARAbstractSelect<Environment>
|
public class AREnvironment extends ARAbstractSelect<Environment>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARFloat extends ARAbstractPrimitive<Float>
|
public class ARFloat extends ARAbstractPrimitive<Float>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARInteger extends ARAbstractPrimitive<Integer>
|
public class ARInteger extends ARAbstractPrimitive<Integer>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARLong extends ARAbstractPrimitive<Long>
|
public class ARLong extends ARAbstractPrimitive<Long>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public class ARMaterial implements ArgReader<Material>
|
public class ARMaterial implements ArgReader<Material>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.Permission;
|
import com.massivecraft.mcore5.Permission;
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.usys.Multiverse;
|
import com.massivecraft.mcore5.usys.Multiverse;
|
||||||
import com.massivecraft.mcore4.usys.MultiverseColl;
|
import com.massivecraft.mcore5.usys.MultiverseColl;
|
||||||
|
|
||||||
public class ARMultiverse extends ARAbstractSelect<Multiverse>
|
public class ARMultiverse extends ARAbstractSelect<Multiverse>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public class AROnlinePlayerExact implements ArgReader<Player>
|
public class AROnlinePlayerExact implements ArgReader<Player>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -6,8 +6,8 @@ import java.util.List;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public class AROnlinePlayerMatch implements ArgReader<Player>
|
public class AROnlinePlayerMatch implements ArgReader<Player>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
public class ARString extends ARAbstractPrimitive<String>
|
public class ARString extends ARAbstractPrimitive<String>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.store.Coll;
|
import com.massivecraft.mcore5.store.Coll;
|
||||||
import com.massivecraft.mcore4.store.Entity;
|
import com.massivecraft.mcore5.store.Entity;
|
||||||
|
|
||||||
public class ARStringEntity<E extends Entity<E, String>> implements ArgReader<E>
|
public class ARStringEntity<E extends Entity<E, String>> implements ArgReader<E>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.usys.Multiverse;
|
import com.massivecraft.mcore5.usys.Multiverse;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public class ARUniverse implements ArgReader<String>
|
public class ARUniverse implements ArgReader<String>
|
||||||
{
|
{
|
@ -1,11 +1,12 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
|
||||||
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public class ARWorld extends ARAbstractSelect<World>
|
public class ARWorld extends ARAbstractSelect<World>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import org.bukkit.WorldType;
|
import org.bukkit.WorldType;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.MUtil;
|
import com.massivecraft.mcore5.util.MUtil;
|
||||||
|
|
||||||
public class ARWorldType extends ARAbstractSelect<WorldType>
|
public class ARWorldType extends ARAbstractSelect<WorldType>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public interface ArgReader<T>
|
public interface ArgReader<T>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.cmd.arg;
|
package com.massivecraft.mcore5.cmd.arg;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.cmd.req;
|
package com.massivecraft.mcore5.cmd.req;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public interface IReq
|
public interface IReq
|
||||||
{
|
{
|
@ -1,12 +1,12 @@
|
|||||||
package com.massivecraft.mcore4.cmd.req;
|
package com.massivecraft.mcore5.cmd.req;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
import com.massivecraft.mcore4.util.Perm;
|
import com.massivecraft.mcore5.util.Perm;
|
||||||
|
|
||||||
public class ReqHasPerm implements IReq
|
public class ReqHasPerm implements IReq
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
package com.massivecraft.mcore4.cmd.req;
|
package com.massivecraft.mcore5.cmd.req;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.Lang;
|
import com.massivecraft.mcore5.Lang;
|
||||||
import com.massivecraft.mcore4.cmd.MCommand;
|
import com.massivecraft.mcore5.cmd.MCommand;
|
||||||
|
|
||||||
public class ReqIsPlayer implements IReq
|
public class ReqIsPlayer implements IReq
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.event;
|
package com.massivecraft.mcore5.event;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.event;
|
package com.massivecraft.mcore5.event;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.event;
|
package com.massivecraft.mcore5.event;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.integration;
|
package com.massivecraft.mcore5.integration;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
||||||
@ -10,8 +10,8 @@ import org.bukkit.event.server.PluginDisableEvent;
|
|||||||
import org.bukkit.event.server.PluginEnableEvent;
|
import org.bukkit.event.server.PluginEnableEvent;
|
||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
public class Integration implements Listener
|
public class Integration implements Listener
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.integration;
|
package com.massivecraft.mcore5.integration;
|
||||||
|
|
||||||
public interface IntegrationFeatures
|
public interface IntegrationFeatures
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.integration;
|
package com.massivecraft.mcore5.integration;
|
||||||
|
|
||||||
public abstract class IntegrationFeaturesAbstract implements IntegrationFeatures
|
public abstract class IntegrationFeaturesAbstract implements IntegrationFeatures
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
@ -11,12 +11,12 @@ import java.util.Set;
|
|||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MCore;
|
import com.massivecraft.mcore5.MCore;
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.Predictate;
|
import com.massivecraft.mcore5.Predictate;
|
||||||
import com.massivecraft.mcore4.store.accessor.Accessor;
|
import com.massivecraft.mcore5.store.accessor.Accessor;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategy;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategy;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapter;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapter;
|
||||||
|
|
||||||
public class Coll<E, L> implements CollInterface<E, L>
|
public class Coll<E, L> implements CollInterface<E, L>
|
||||||
{
|
{
|
@ -1,13 +1,13 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.Predictate;
|
import com.massivecraft.mcore5.Predictate;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategy;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategy;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapter;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapter;
|
||||||
|
|
||||||
public interface CollInterface<E, L>
|
public interface CollInterface<E, L>
|
||||||
{
|
{
|
@ -1,13 +1,13 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.usys.Aspect;
|
import com.massivecraft.mcore5.usys.Aspect;
|
||||||
import com.massivecraft.mcore4.usys.Multiverse;
|
import com.massivecraft.mcore5.usys.Multiverse;
|
||||||
import com.massivecraft.mcore4.util.MUtil;
|
import com.massivecraft.mcore5.util.MUtil;
|
||||||
|
|
||||||
public abstract class Colls<C extends Coll<E, L>, E, L>
|
public abstract class Colls<C extends Coll<E, L>, E, L>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.util.DiscUtil;
|
import com.massivecraft.mcore5.util.DiscUtil;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
|
|
||||||
public class DbGson extends DbAbstract<JsonElement>
|
public class DbGson extends DbAbstract<JsonElement>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.BasicDBObject;
|
import com.massivecraft.mcore5.xlib.mongodb.BasicDBObject;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DB;
|
import com.massivecraft.mcore5.xlib.mongodb.DB;
|
||||||
|
|
||||||
public class DbMongo extends DbAbstract<BasicDBObject>
|
public class DbMongo extends DbAbstract<BasicDBObject>
|
||||||
{
|
{
|
@ -1,12 +1,12 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategy;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategy;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapter;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapter;
|
||||||
|
|
||||||
public interface Driver<R>
|
public interface Driver<R>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategy;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategy;
|
||||||
|
|
||||||
public abstract class DriverAbstract<R> implements Driver<R>
|
public abstract class DriverAbstract<R> implements Driver<R>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.AbstractMap.SimpleEntry;
|
import java.util.AbstractMap.SimpleEntry;
|
||||||
@ -11,14 +11,14 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyAiGson;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyAiGson;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyOidGson;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyOidGson;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyUuidMongoAndGson;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyUuidMongoAndGson;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapter;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapter;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapterGson;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapterGson;
|
||||||
import com.massivecraft.mcore4.util.DiscUtil;
|
import com.massivecraft.mcore5.util.DiscUtil;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonElement;
|
import com.massivecraft.mcore5.xlib.gson.JsonElement;
|
||||||
import com.massivecraft.mcore4.xlib.gson.JsonParser;
|
import com.massivecraft.mcore5.xlib.gson.JsonParser;
|
||||||
|
|
||||||
public class DriverGson extends DriverAbstract<JsonElement>
|
public class DriverGson extends DriverAbstract<JsonElement>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@ -9,16 +9,16 @@ import java.util.Set;
|
|||||||
import java.util.AbstractMap.SimpleEntry;
|
import java.util.AbstractMap.SimpleEntry;
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyAiMongo;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyAiMongo;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyOidMongo;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyOidMongo;
|
||||||
import com.massivecraft.mcore4.store.idstrategy.IdStrategyUuidMongoAndGson;
|
import com.massivecraft.mcore5.store.idstrategy.IdStrategyUuidMongoAndGson;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapter;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapter;
|
||||||
import com.massivecraft.mcore4.store.storeadapter.StoreAdapterMongo;
|
import com.massivecraft.mcore5.store.storeadapter.StoreAdapterMongo;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.BasicDBObject;
|
import com.massivecraft.mcore5.xlib.mongodb.BasicDBObject;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DB;
|
import com.massivecraft.mcore5.xlib.mongodb.DB;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DBCollection;
|
import com.massivecraft.mcore5.xlib.mongodb.DBCollection;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DBCursor;
|
import com.massivecraft.mcore5.xlib.mongodb.DBCursor;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.MongoURI;
|
import com.massivecraft.mcore5.xlib.mongodb.MongoURI;
|
||||||
|
|
||||||
public class DriverMongo extends DriverAbstract<BasicDBObject>
|
public class DriverMongo extends DriverAbstract<BasicDBObject>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MCore;
|
import com.massivecraft.mcore5.MCore;
|
||||||
import com.massivecraft.mcore4.store.accessor.Accessor;
|
import com.massivecraft.mcore5.store.accessor.Accessor;
|
||||||
import com.massivecraft.mcore4.xlib.gson.Gson;
|
import com.massivecraft.mcore5.xlib.gson.Gson;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Usage of this class is highly optional. You may persist anything. If you are
|
* Usage of this class is highly optional. You may persist anything. If you are
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
public class ExamineThread<E, L> extends Thread
|
public class ExamineThread<E, L> extends Thread
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileFilter;
|
import java.io.FileFilter;
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MCore;
|
import com.massivecraft.mcore5.MCore;
|
||||||
|
|
||||||
|
|
||||||
public class MStore
|
public class MStore
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.Predictate;
|
import com.massivecraft.mcore5.Predictate;
|
||||||
|
|
||||||
public class MStoreUtil
|
public class MStoreUtil
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
public enum ModificationState
|
public enum ModificationState
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
@ -7,15 +7,15 @@ import java.util.List;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.MCore;
|
import com.massivecraft.mcore5.MCore;
|
||||||
import com.massivecraft.mcore4.MPlugin;
|
import com.massivecraft.mcore5.MPlugin;
|
||||||
import com.massivecraft.mcore4.Predictate;
|
import com.massivecraft.mcore5.Predictate;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ARStringEntity;
|
import com.massivecraft.mcore5.cmd.arg.ARStringEntity;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ARStringMatchFullCI;
|
import com.massivecraft.mcore5.cmd.arg.ARStringMatchFullCI;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ARStringMatchStartCI;
|
import com.massivecraft.mcore5.cmd.arg.ARStringMatchStartCI;
|
||||||
import com.massivecraft.mcore4.cmd.arg.ArgReader;
|
import com.massivecraft.mcore5.cmd.arg.ArgReader;
|
||||||
import com.massivecraft.mcore4.util.MUtil;
|
import com.massivecraft.mcore5.util.MUtil;
|
||||||
import com.massivecraft.mcore4.util.PlayerUtil;
|
import com.massivecraft.mcore5.util.PlayerUtil;
|
||||||
|
|
||||||
public class PlayerColl<E extends PlayerEntity<E>> extends Coll<E, String>
|
public class PlayerColl<E extends PlayerEntity<E>> extends Coll<E, String>
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store;
|
package com.massivecraft.mcore5.store;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
@ -6,8 +6,8 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.util.PlayerUtil;
|
import com.massivecraft.mcore5.util.PlayerUtil;
|
||||||
import com.massivecraft.mcore4.util.Txt;
|
import com.massivecraft.mcore5.util.Txt;
|
||||||
|
|
||||||
|
|
||||||
public abstract class PlayerEntity<E extends PlayerEntity<E>> extends Entity<E, String>
|
public abstract class PlayerEntity<E extends PlayerEntity<E>> extends Entity<E, String>
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface EntityAccessor extends EntitySetter, EntityGetter, EntityGlue
|
public interface EntityAccessor extends EntitySetter, EntityGetter, EntityGlue
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface EntityGetter
|
public interface EntityGetter
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface EntitySetter
|
public interface EntitySetter
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface PropertyAccessor extends PropertySetter, PropertyGetter
|
public interface PropertyAccessor extends PropertySetter, PropertyGetter
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public class PropertyAccessorComposite implements PropertyAccessor
|
public class PropertyAccessorComposite implements PropertyAccessor
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface PropertyGetter
|
public interface PropertyGetter
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
public interface PropertySetter
|
public interface PropertySetter
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.massivecraft.mcore4.store.accessor;
|
package com.massivecraft.mcore5.store.accessor;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tasks of the IdStrategy:
|
* The tasks of the IdStrategy:
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
|
|
||||||
public abstract class IdStrategyAbstract<L, R> implements IdStrategy<L, R>
|
public abstract class IdStrategyAbstract<L, R> implements IdStrategy<L, R>
|
||||||
{
|
{
|
@ -1,11 +1,11 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
import com.massivecraft.mcore4.store.DbGson;
|
import com.massivecraft.mcore5.store.DbGson;
|
||||||
import com.massivecraft.mcore4.util.DiscUtil;
|
import com.massivecraft.mcore5.util.DiscUtil;
|
||||||
|
|
||||||
public class IdStrategyAiGson extends IdStrategyAbstract<String, String>
|
public class IdStrategyAiGson extends IdStrategyAbstract<String, String>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
import com.massivecraft.mcore4.store.DbMongo;
|
import com.massivecraft.mcore5.store.DbMongo;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.BasicDBObject;
|
import com.massivecraft.mcore5.xlib.mongodb.BasicDBObject;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DBCollection;
|
import com.massivecraft.mcore5.xlib.mongodb.DBCollection;
|
||||||
import com.massivecraft.mcore4.xlib.mongodb.DBObject;
|
import com.massivecraft.mcore5.xlib.mongodb.DBObject;
|
||||||
|
|
||||||
public class IdStrategyAiMongo extends IdStrategyAbstract<String, String>
|
public class IdStrategyAiMongo extends IdStrategyAbstract<String, String>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
import com.massivecraft.mcore4.xlib.bson.types.ObjectId;
|
import com.massivecraft.mcore5.xlib.bson.types.ObjectId;
|
||||||
|
|
||||||
public class IdStrategyOidGson extends IdStrategyAbstract<ObjectId, String>
|
public class IdStrategyOidGson extends IdStrategyAbstract<ObjectId, String>
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
import com.massivecraft.mcore4.xlib.bson.types.ObjectId;
|
import com.massivecraft.mcore5.xlib.bson.types.ObjectId;
|
||||||
|
|
||||||
public class IdStrategyOidMongo extends IdStrategyAbstract<ObjectId, ObjectId>
|
public class IdStrategyOidMongo extends IdStrategyAbstract<ObjectId, ObjectId>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
package com.massivecraft.mcore4.store.idstrategy;
|
package com.massivecraft.mcore5.store.idstrategy;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import com.massivecraft.mcore4.store.CollInterface;
|
import com.massivecraft.mcore5.store.CollInterface;
|
||||||
|
|
||||||
public class IdStrategyUuidMongoAndGson extends IdStrategyAbstract<UUID, String>
|
public class IdStrategyUuidMongoAndGson extends IdStrategyAbstract<UUID, String>
|
||||||
{
|
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user