Updated to quartz lib yay! :D

This commit is contained in:
Vlammar 2020-11-15 19:33:16 +01:00
parent aeb5c2dfcd
commit fc22e5a5a9
33 changed files with 126 additions and 128 deletions

View File

@ -103,7 +103,7 @@ save-full-image: false
### 3.0 — The From-Scratch Update ### 3.0 — The From-Scratch Update
The 3.0 release is a complete rewrite of the original ImageOnMap plugin, now based on zLib, which adds many feature and fixes many bugs. The 3.0 release is a complete rewrite of the original ImageOnMap plugin, now based on QuartzLib, which adds many feature and fixes many bugs.
This new version is not compatible with the older ones, so your older maps will not be loaded. Run the `/maptool migrate` command (as op or in console) in order to get them back in this new version. This new version is not compatible with the older ones, so your older maps will not be loaded. Run the `/maptool migrate` command (as op or in console) in order to get them back in this new version.

View File

@ -45,19 +45,19 @@ import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.migration.MigratorExecutor; import fr.moribus.imageonmap.migration.MigratorExecutor;
import fr.moribus.imageonmap.migration.V3Migrator; import fr.moribus.imageonmap.migration.V3Migrator;
import fr.moribus.imageonmap.ui.MapItemManager; import fr.moribus.imageonmap.ui.MapItemManager;
import fr.zcraft.zlib.components.commands.CommandWorkers; import fr.zcraft.quartzlib.components.commands.CommandWorkers;
import fr.zcraft.zlib.components.commands.Commands; import fr.zcraft.quartzlib.components.commands.Commands;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import fr.zcraft.zlib.components.i18n.I18n; import fr.zcraft.quartzlib.components.i18n.I18n;
import fr.zcraft.zlib.core.ZPlugin; import fr.zcraft.quartzlib.core.QuartzPlugin;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.UpdateChecker; import fr.zcraft.quartzlib.tools.UpdateChecker;
import org.bstats.bukkit.Metrics; import org.bstats.bukkit.Metrics;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
public final class ImageOnMap extends ZPlugin public final class ImageOnMap extends QuartzPlugin
{ {
static private final String IMAGES_DIRECTORY_NAME = "images"; static private final String IMAGES_DIRECTORY_NAME = "images";
static private final String MAPS_DIRECTORY_NAME = "maps"; static private final String MAPS_DIRECTORY_NAME = "maps";

View File

@ -36,12 +36,12 @@
package fr.moribus.imageonmap; package fr.moribus.imageonmap;
import fr.zcraft.zlib.components.configuration.Configuration; import fr.zcraft.quartzlib.components.configuration.Configuration;
import fr.zcraft.zlib.components.configuration.ConfigurationItem; import fr.zcraft.quartzlib.components.configuration.ConfigurationItem;
import java.util.Locale; import java.util.Locale;
import static fr.zcraft.zlib.components.configuration.ConfigurationItem.item; import static fr.zcraft.quartzlib.components.configuration.ConfigurationItem.item;
public final class PluginConfiguration extends Configuration public final class PluginConfiguration extends Configuration

View File

@ -37,10 +37,9 @@ package fr.moribus.imageonmap.commands;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.commands.Command; import fr.zcraft.quartzlib.components.commands.Command;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -41,12 +41,12 @@ import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.MapManagerException; import fr.moribus.imageonmap.map.MapManagerException;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.commands.WithFlags; import fr.zcraft.quartzlib.components.commands.WithFlags;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.rawtext.RawText; import fr.zcraft.quartzlib.components.rawtext.RawText;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -41,11 +41,11 @@ import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.MapManagerException; import fr.moribus.imageonmap.map.MapManagerException;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.commands.WithFlags; import fr.zcraft.quartzlib.components.commands.WithFlags;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;

View File

@ -40,9 +40,9 @@ package fr.moribus.imageonmap.commands.maptool;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.gui.MapListGui; import fr.moribus.imageonmap.gui.MapListGui;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;

View File

@ -39,11 +39,11 @@ package fr.moribus.imageonmap.commands.maptool;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.gui.MapListGui; import fr.moribus.imageonmap.gui.MapListGui;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;

View File

@ -43,9 +43,9 @@ import org.bukkit.entity.Player;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
@CommandInfo (name = "get") @CommandInfo (name = "get")
public class GetCommand extends IoMCommand public class GetCommand extends IoMCommand

View File

@ -41,9 +41,9 @@ import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;

View File

@ -39,9 +39,9 @@ package fr.moribus.imageonmap.commands.maptool;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.ui.MapItemManager; import fr.moribus.imageonmap.ui.MapItemManager;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -41,12 +41,12 @@ import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.rawtext.RawText; import fr.zcraft.quartzlib.components.rawtext.RawText;
import fr.zcraft.zlib.components.rawtext.RawTextPart; import fr.zcraft.quartzlib.components.rawtext.RawTextPart;
import fr.zcraft.zlib.tools.text.RawMessage; import fr.zcraft.quartzlib.tools.text.RawMessage;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -42,12 +42,12 @@ import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.rawtext.RawText; import fr.zcraft.quartzlib.components.rawtext.RawText;
import fr.zcraft.zlib.components.rawtext.RawTextPart; import fr.zcraft.quartzlib.components.rawtext.RawTextPart;
import fr.zcraft.zlib.tools.text.RawMessage; import fr.zcraft.quartzlib.tools.text.RawMessage;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;

View File

@ -39,9 +39,9 @@ package fr.moribus.imageonmap.commands.maptool;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.migration.MigratorExecutor; import fr.moribus.imageonmap.migration.MigratorExecutor;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@CommandInfo (name = "migrate") @CommandInfo (name = "migrate")

View File

@ -42,13 +42,13 @@ import fr.moribus.imageonmap.image.ImageRendererExecutor;
import fr.moribus.imageonmap.image.ImageUtils; import fr.moribus.imageonmap.image.ImageUtils;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.worker.WorkerCallback; import fr.zcraft.quartzlib.components.worker.WorkerCallback;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.text.ActionBar; import fr.zcraft.quartzlib.tools.text.ActionBar;
import fr.zcraft.zlib.tools.text.MessageSender; import fr.zcraft.quartzlib.tools.text.MessageSender;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -21,9 +21,9 @@ package fr.moribus.imageonmap.commands.maptool;
import fr.moribus.imageonmap.Permissions; import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.commands.IoMCommand; import fr.moribus.imageonmap.commands.IoMCommand;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import java.util.List; import java.util.List;

View File

@ -42,13 +42,13 @@ import fr.moribus.imageonmap.image.ImageRendererExecutor;
import fr.moribus.imageonmap.image.ImageUtils; import fr.moribus.imageonmap.image.ImageUtils;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.worker.WorkerCallback; import fr.zcraft.quartzlib.components.worker.WorkerCallback;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.text.ActionBar; import fr.zcraft.quartzlib.tools.text.ActionBar;
import fr.zcraft.zlib.tools.text.MessageSender; import fr.zcraft.quartzlib.tools.text.MessageSender;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -42,13 +42,13 @@ import fr.moribus.imageonmap.image.ImageRendererExecutor;
import fr.moribus.imageonmap.image.ImageUtils; import fr.moribus.imageonmap.image.ImageUtils;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.commands.CommandException; import fr.zcraft.quartzlib.components.commands.CommandException;
import fr.zcraft.zlib.components.commands.CommandInfo; import fr.zcraft.quartzlib.components.commands.CommandInfo;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.worker.WorkerCallback; import fr.zcraft.quartzlib.components.worker.WorkerCallback;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.text.ActionBar; import fr.zcraft.quartzlib.tools.text.ActionBar;
import fr.zcraft.zlib.tools.text.MessageSender; import fr.zcraft.quartzlib.tools.text.MessageSender;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -40,12 +40,12 @@ import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.MapManagerException; import fr.moribus.imageonmap.map.MapManagerException;
import fr.zcraft.zlib.components.gui.ActionGui; import fr.zcraft.quartzlib.components.gui.ActionGui;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import fr.zcraft.zlib.components.gui.GuiAction; import fr.zcraft.quartzlib.components.gui.GuiAction;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.items.ItemStackBuilder; import fr.zcraft.quartzlib.tools.items.ItemStackBuilder;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;

View File

@ -41,14 +41,13 @@ import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.moribus.imageonmap.map.SingleMap; import fr.moribus.imageonmap.map.SingleMap;
import fr.moribus.imageonmap.ui.MapItemManager; import fr.moribus.imageonmap.ui.MapItemManager;
import fr.zcraft.zlib.components.gui.ExplorerGui; import fr.zcraft.quartzlib.components.gui.ExplorerGui;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import fr.zcraft.zlib.components.gui.GuiAction; import fr.zcraft.quartzlib.components.gui.GuiAction;
import fr.zcraft.zlib.components.gui.PromptGui; import fr.zcraft.quartzlib.components.gui.PromptGui;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.Callback; import fr.zcraft.quartzlib.tools.Callback;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.items.ItemStackBuilder;
import fr.zcraft.zlib.tools.items.ItemStackBuilder;
import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.ArrayUtils;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;

View File

@ -43,10 +43,10 @@ import fr.moribus.imageonmap.map.PosterMap;
import fr.moribus.imageonmap.map.SingleMap; import fr.moribus.imageonmap.map.SingleMap;
import fr.moribus.imageonmap.ui.MapItemManager; import fr.moribus.imageonmap.ui.MapItemManager;
import fr.moribus.imageonmap.ui.SplatterMapManager; import fr.moribus.imageonmap.ui.SplatterMapManager;
import fr.zcraft.zlib.components.gui.ExplorerGui; import fr.zcraft.quartzlib.components.gui.ExplorerGui;
import fr.zcraft.zlib.components.gui.Gui; import fr.zcraft.quartzlib.components.gui.Gui;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.items.ItemStackBuilder; import fr.zcraft.quartzlib.tools.items.ItemStackBuilder;
import org.bukkit.Color; import org.bukkit.Color;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.OfflinePlayer; import org.bukkit.OfflinePlayer;

View File

@ -38,9 +38,9 @@ package fr.moribus.imageonmap.image;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.zcraft.zlib.components.worker.Worker; import fr.zcraft.quartzlib.components.worker.Worker;
import fr.zcraft.zlib.components.worker.WorkerAttributes; import fr.zcraft.quartzlib.components.worker.WorkerAttributes;
import fr.zcraft.zlib.components.worker.WorkerRunnable; import fr.zcraft.quartzlib.components.worker.WorkerRunnable;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

View File

@ -40,11 +40,11 @@ import fr.moribus.imageonmap.Permissions;
import fr.moribus.imageonmap.PluginConfiguration; import fr.moribus.imageonmap.PluginConfiguration;
import fr.moribus.imageonmap.map.ImageMap; import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.components.worker.Worker; import fr.zcraft.quartzlib.components.worker.Worker;
import fr.zcraft.zlib.components.worker.WorkerAttributes; import fr.zcraft.quartzlib.components.worker.WorkerAttributes;
import fr.zcraft.zlib.components.worker.WorkerCallback; import fr.zcraft.quartzlib.components.worker.WorkerCallback;
import fr.zcraft.zlib.components.worker.WorkerRunnable; import fr.zcraft.quartzlib.components.worker.WorkerRunnable;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import javax.imageio.ImageIO; import javax.imageio.ImageIO;

View File

@ -38,7 +38,7 @@ package fr.moribus.imageonmap.image;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.core.ZLib; import fr.zcraft.quartzlib.core.QuartzLib;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
@ -60,7 +60,7 @@ public class MapInitEvent implements Listener
{ {
static public void init() static public void init()
{ {
ZLib.registerEvents(new MapInitEvent()); QuartzLib.registerEvents(new MapInitEvent());
for(World world : Bukkit.getWorlds()) for(World world : Bukkit.getWorlds())
{ {

View File

@ -36,7 +36,7 @@
package fr.moribus.imageonmap.image; package fr.moribus.imageonmap.image;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.map.MapCanvas; import org.bukkit.map.MapCanvas;

View File

@ -38,7 +38,7 @@ package fr.moribus.imageonmap.map;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.moribus.imageonmap.ui.MapItemManager; import fr.moribus.imageonmap.ui.MapItemManager;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.InvalidConfigurationException;

View File

@ -41,7 +41,7 @@ import fr.moribus.imageonmap.PluginConfiguration;
import fr.moribus.imageonmap.image.ImageIOExecutor; import fr.moribus.imageonmap.image.ImageIOExecutor;
import fr.moribus.imageonmap.image.PosterImage; import fr.moribus.imageonmap.image.PosterImage;
import fr.moribus.imageonmap.map.MapManagerException.Reason; import fr.moribus.imageonmap.map.MapManagerException.Reason;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;

View File

@ -36,7 +36,7 @@
package fr.moribus.imageonmap.map; package fr.moribus.imageonmap.map;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import java.text.MessageFormat; import java.text.MessageFormat;

View File

@ -39,7 +39,7 @@ package fr.moribus.imageonmap.map;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.moribus.imageonmap.PluginConfiguration; import fr.moribus.imageonmap.PluginConfiguration;
import fr.moribus.imageonmap.map.MapManagerException.Reason; import fr.moribus.imageonmap.map.MapManagerException.Reason;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.InvalidConfigurationException;

View File

@ -37,8 +37,8 @@
package fr.moribus.imageonmap.migration; package fr.moribus.imageonmap.migration;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
public class MigratorExecutor public class MigratorExecutor

View File

@ -38,9 +38,9 @@ package fr.moribus.imageonmap.migration;
import fr.moribus.imageonmap.ImageOnMap; import fr.moribus.imageonmap.ImageOnMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.tools.PluginLogger; import fr.zcraft.quartzlib.tools.PluginLogger;
import fr.zcraft.zlib.tools.mojang.UUIDFetcher; import fr.zcraft.quartzlib.tools.mojang.UUIDFetcher;
import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.ArrayUtils;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.InvalidConfigurationException;

View File

@ -41,10 +41,10 @@ import fr.moribus.imageonmap.map.ImageMap;
import fr.moribus.imageonmap.map.MapManager; import fr.moribus.imageonmap.map.MapManager;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.moribus.imageonmap.map.SingleMap; import fr.moribus.imageonmap.map.SingleMap;
import fr.zcraft.zlib.components.i18n.I; import fr.zcraft.quartzlib.components.i18n.I;
import fr.zcraft.zlib.core.ZLib; import fr.zcraft.quartzlib.core.QuartzLib;
import fr.zcraft.zlib.tools.items.ItemStackBuilder; import fr.zcraft.quartzlib.tools.items.ItemStackBuilder;
import fr.zcraft.zlib.tools.items.ItemUtils; import fr.zcraft.quartzlib.tools.items.ItemUtils;
import org.bukkit.*; import org.bukkit.*;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;
import org.bukkit.entity.ItemFrame; import org.bukkit.entity.ItemFrame;
@ -71,7 +71,7 @@ public class MapItemManager implements Listener
static public void init() static public void init()
{ {
mapItemCache = new HashMap<>(); mapItemCache = new HashMap<>();
ZLib.registerEvents(new MapItemManager()); QuartzLib.registerEvents(new MapItemManager());
} }
static public void exit() static public void exit()

View File

@ -37,8 +37,8 @@
package fr.moribus.imageonmap.ui; package fr.moribus.imageonmap.ui;
import fr.moribus.imageonmap.map.PosterMap; import fr.moribus.imageonmap.map.PosterMap;
import fr.zcraft.zlib.tools.world.FlatLocation; import fr.zcraft.quartzlib.tools.world.FlatLocation;
import fr.zcraft.zlib.tools.world.WorldUtils; import fr.zcraft.quartzlib.tools.world.WorldUtils;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;