mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Update to DRECommons 4.0
This commit is contained in:
parent
7f69b9738a
commit
5f8cfcd51c
14
pom.xml
14
pom.xml
@ -46,12 +46,12 @@
|
|||||||
<artifactSet>
|
<artifactSet>
|
||||||
<includes>
|
<includes>
|
||||||
<include>io.github.dre2n:caliburn</include>
|
<include>io.github.dre2n:caliburn</include>
|
||||||
<include>io.github.dre2n:commons</include>
|
<include>de.erethon:commons</include>
|
||||||
</includes>
|
</includes>
|
||||||
</artifactSet>
|
</artifactSet>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>io.github.dre2n.commons</pattern>
|
<pattern>de.erethon.commons</pattern>
|
||||||
<shadedPattern>io.github.dre2n.dungeonsxl.util.commons</shadedPattern>
|
<shadedPattern>io.github.dre2n.dungeonsxl.util.commons</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
</relocations>
|
</relocations>
|
||||||
@ -75,9 +75,9 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.github.dre2n</groupId>
|
<groupId>de.erethon</groupId>
|
||||||
<artifactId>commons</artifactId>
|
<artifactId>commons</artifactId>
|
||||||
<version>3.1.4</version>
|
<version>4.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -129,8 +129,12 @@
|
|||||||
<url>http://repo.inventivetalent.org/content/groups/public/</url>
|
<url>http://repo.inventivetalent.org/content/groups/public/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>dre2n-repo</id>
|
<id>sataniel-repo</id>
|
||||||
<url>http://feuerstern.bplaced.net/repo/</url>
|
<url>http://feuerstern.bplaced.net/repo/</url>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>dre-repo</id>
|
||||||
|
<url>http://erethon.de/repo/</url>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</project>
|
</project>
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl;
|
package io.github.dre2n.dungeonsxl;
|
||||||
|
|
||||||
|
import de.erethon.commons.compatibility.Internals;
|
||||||
|
import de.erethon.commons.config.MessageConfig;
|
||||||
|
import de.erethon.commons.javaplugin.DREPlugin;
|
||||||
|
import de.erethon.commons.javaplugin.DREPluginSettings;
|
||||||
import io.github.dre2n.caliburn.CaliburnAPI;
|
import io.github.dre2n.caliburn.CaliburnAPI;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
|
||||||
import io.github.dre2n.commons.config.MessageConfig;
|
|
||||||
import io.github.dre2n.commons.javaplugin.DREPlugin;
|
|
||||||
import io.github.dre2n.commons.javaplugin.DREPluginSettings;
|
|
||||||
import io.github.dre2n.dungeonsxl.announcer.AnnouncerCache;
|
import io.github.dre2n.dungeonsxl.announcer.AnnouncerCache;
|
||||||
import io.github.dre2n.dungeonsxl.command.DCommandCache;
|
import io.github.dre2n.dungeonsxl.command.DCommandCache;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
@ -44,12 +44,14 @@ import io.github.dre2n.dungeonsxl.sign.DSignTypeCache;
|
|||||||
import io.github.dre2n.dungeonsxl.sign.SignScriptCache;
|
import io.github.dre2n.dungeonsxl.sign.SignScriptCache;
|
||||||
import io.github.dre2n.dungeonsxl.trigger.TriggerTypeCache;
|
import io.github.dre2n.dungeonsxl.trigger.TriggerTypeCache;
|
||||||
import io.github.dre2n.dungeonsxl.util.NoReload;
|
import io.github.dre2n.dungeonsxl.util.NoReload;
|
||||||
import io.github.dre2n.dungeonsxl.util.PageGUICache;
|
|
||||||
import io.github.dre2n.dungeonsxl.world.DWorldCache;
|
import io.github.dre2n.dungeonsxl.world.DWorldCache;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
import org.bukkit.event.HandlerList;
|
import org.bukkit.event.HandlerList;
|
||||||
|
import org.bukkit.inventory.Inventory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The main class of DungeonsXL.
|
* The main class of DungeonsXL.
|
||||||
@ -76,7 +78,6 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
|
|
||||||
private GlobalData globalData;
|
private GlobalData globalData;
|
||||||
private MainConfig mainConfig;
|
private MainConfig mainConfig;
|
||||||
private MessageConfig messageConfig;
|
|
||||||
|
|
||||||
private DCommandCache dCommands;
|
private DCommandCache dCommands;
|
||||||
private DSignTypeCache dSigns;
|
private DSignTypeCache dSigns;
|
||||||
@ -94,7 +95,6 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
private DMobTypeCache dMobTypes;
|
private DMobTypeCache dMobTypes;
|
||||||
private SignScriptCache signScripts;
|
private SignScriptCache signScripts;
|
||||||
private DWorldCache dWorlds;
|
private DWorldCache dWorlds;
|
||||||
private PageGUICache pageGUIs;
|
|
||||||
|
|
||||||
private CopyOnWriteArrayList<Game> games = new CopyOnWriteArrayList<>();
|
private CopyOnWriteArrayList<Game> games = new CopyOnWriteArrayList<>();
|
||||||
private CopyOnWriteArrayList<DGroup> dGroups = new CopyOnWriteArrayList<>();
|
private CopyOnWriteArrayList<DGroup> dGroups = new CopyOnWriteArrayList<>();
|
||||||
@ -243,7 +243,6 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
loadDMobTypes(MOBS);
|
loadDMobTypes(MOBS);
|
||||||
loadSignScripts(SIGNS);
|
loadSignScripts(SIGNS);
|
||||||
loadDCommandCache();
|
loadDCommandCache();
|
||||||
loadPageGUICache();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save and load
|
// Save and load
|
||||||
@ -303,13 +302,6 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
mainConfig = new MainConfig(file);
|
mainConfig = new MainConfig(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @return the loaded instance of MessageConfig
|
|
||||||
*/
|
|
||||||
public MessageConfig getMessageConfig() {
|
|
||||||
return messageConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* load / reload a new instance of MessageConfig
|
* load / reload a new instance of MessageConfig
|
||||||
*/
|
*/
|
||||||
@ -543,21 +535,6 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
dWorlds = new DWorldCache(MAPS);
|
dWorlds = new DWorldCache(MAPS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PageGUICache getPageGUICache() {
|
|
||||||
return pageGUIs;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* load / reload a new instance of PageGUICache
|
|
||||||
*/
|
|
||||||
public void loadPageGUICache() {
|
|
||||||
if (pageGUIs != null) {
|
|
||||||
HandlerList.unregisterAll(pageGUIs);
|
|
||||||
}
|
|
||||||
pageGUIs = new PageGUICache();
|
|
||||||
manager.registerEvents(pageGUIs, this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the games
|
* @return the games
|
||||||
*/
|
*/
|
||||||
@ -572,4 +549,12 @@ public class DungeonsXL extends DREPlugin {
|
|||||||
return dGroups;
|
return dGroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
private Set<Inventory> guis = new HashSet<>();
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public Set<Inventory> getGUIs() {
|
||||||
|
return guis;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.announcer;
|
package io.github.dre2n.dungeonsxl.announcer;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.DefaultFontInfo;
|
import de.erethon.commons.chat.DefaultFontInfo;
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
@ -357,7 +357,7 @@ public class Announcer {
|
|||||||
public void showGUI(Player player) {
|
public void showGUI(Player player) {
|
||||||
updateButtons();
|
updateButtons();
|
||||||
Inventory gui = GUIUtil.createGUI(plugin, ChatColor.DARK_RED + name, buttons);
|
Inventory gui = GUIUtil.createGUI(plugin, ChatColor.DARK_RED + name, buttons);
|
||||||
plugin.addGUI(gui);
|
plugin.getGUIs().add(gui);
|
||||||
player.openInventory(gui);
|
player.openInventory(gui);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.announcer;
|
package io.github.dre2n.dungeonsxl.announcer;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.command.DRECommandCache;
|
import de.erethon.commons.command.DRECommandCache;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.javaplugin.DREPlugin;
|
import de.erethon.commons.javaplugin.DREPlugin;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
@ -78,12 +78,12 @@ public class DeleteCommand extends DRECommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
dWorlds.removeResource(resource);
|
dWorlds.removeResource(resource);
|
||||||
FileUtil.removeDirectory(resource.getFolder());
|
FileUtil.removeDir(resource.getFolder());
|
||||||
|
|
||||||
if (args[2].equalsIgnoreCase("true")) {
|
if (args[2].equalsIgnoreCase("true")) {
|
||||||
for (File file : DungeonsXL.BACKUPS.listFiles()) {
|
for (File file : DungeonsXL.BACKUPS.listFiles()) {
|
||||||
if (file.getName().startsWith(resource.getName() + "-")) {
|
if (file.getName().startsWith(resource.getName() + "-")) {
|
||||||
FileUtil.removeDirectory(file);
|
FileUtil.removeDir(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.global.DPortal;
|
import io.github.dre2n.dungeonsxl.global.DPortal;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.game.Game;
|
import io.github.dre2n.dungeonsxl.game.Game;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
import io.github.dre2n.dungeonsxl.player.DEditPlayer;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.game.Game;
|
import io.github.dre2n.dungeonsxl.game.Game;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGroup;
|
import io.github.dre2n.dungeonsxl.player.DGroup;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dgroup.DGroupCreateEvent;
|
import io.github.dre2n.dungeonsxl.event.dgroup.DGroupCreateEvent;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
@ -70,13 +70,13 @@ public class ImportCommand extends DRECommand {
|
|||||||
MessageUtil.log(plugin, DMessage.LOG_IMPORT_WORLD.getMessage());
|
MessageUtil.log(plugin, DMessage.LOG_IMPORT_WORLD.getMessage());
|
||||||
|
|
||||||
if (!plugin.getMainConfig().areTweaksEnabled()) {
|
if (!plugin.getMainConfig().areTweaksEnabled()) {
|
||||||
FileUtil.copyDirectory(source, target, new String[]{"playerdata", "stats"});
|
FileUtil.copyDir(source, target, "playerdata", "stats");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
FileUtil.copyDirectory(source, target, new String[]{"playerdata", "stats"});
|
FileUtil.copyDir(source, target, "playerdata", "stats");
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(plugin);
|
}.runTaskAsynchronously(plugin);
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.announcer.Announcer;
|
import io.github.dre2n.dungeonsxl.announcer.Announcer;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import static io.github.dre2n.dungeonsxl.command.DCommandCache.LEAVE;
|
import static io.github.dre2n.dungeonsxl.command.DCommandCache.LEAVE;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerLeaveDGroupEvent;
|
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerLeaveDGroupEvent;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGroup;
|
import io.github.dre2n.dungeonsxl.player.DGroup;
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import static io.github.dre2n.commons.chat.FatLetter.*;
|
import static de.erethon.commons.chat.FatLetter.*;
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
import de.erethon.commons.compatibility.Internals;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.global.DPortal;
|
import io.github.dre2n.dungeonsxl.global.DPortal;
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.DefaultFontInfo;
|
import de.erethon.commons.chat.DefaultFontInfo;
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
import de.erethon.commons.compatibility.Internals;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.DataReloadEvent;
|
import io.github.dre2n.dungeonsxl.event.DataReloadEvent;
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
import de.erethon.commons.compatibility.Internals;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.DataReloadEvent;
|
import io.github.dre2n.dungeonsxl.event.DataReloadEvent;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.config.MainConfig;
|
import io.github.dre2n.dungeonsxl.config.MainConfig;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.command;
|
package io.github.dre2n.dungeonsxl.command;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.command.DRECommand;
|
import de.erethon.commons.command.DRECommand;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.config;
|
package io.github.dre2n.dungeonsxl.config;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.config.Message;
|
import de.erethon.commons.config.Message;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.config;
|
package io.github.dre2n.dungeonsxl.config;
|
||||||
|
|
||||||
import io.github.dre2n.commons.config.DREConfig;
|
import de.erethon.commons.config.DREConfig;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.config;
|
package io.github.dre2n.dungeonsxl.config;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
import de.erethon.commons.compatibility.Internals;
|
||||||
import io.github.dre2n.commons.config.DREConfig;
|
import de.erethon.commons.config.DREConfig;
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
import io.github.dre2n.dungeonsxl.util.DColor;
|
import io.github.dre2n.dungeonsxl.util.DColor;
|
||||||
import static io.github.dre2n.dungeonsxl.util.DColor.*;
|
import static io.github.dre2n.dungeonsxl.util.DColor.*;
|
||||||
import io.github.dre2n.dungeonsxl.world.WorldConfig;
|
import io.github.dre2n.dungeonsxl.world.WorldConfig;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.dungeon;
|
package io.github.dre2n.dungeonsxl.dungeon;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.dungeon;
|
package io.github.dre2n.dungeonsxl.dungeon;
|
||||||
|
|
||||||
import io.github.dre2n.commons.config.DREConfig;
|
import de.erethon.commons.config.DREConfig;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.world.DResourceWorld;
|
import io.github.dre2n.dungeonsxl.world.DResourceWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.DWorldCache;
|
import io.github.dre2n.dungeonsxl.world.DWorldCache;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.game;
|
package io.github.dre2n.dungeonsxl.game;
|
||||||
|
|
||||||
import io.github.dre2n.commons.player.PlayerUtil;
|
import de.erethon.commons.player.PlayerUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.game;
|
package io.github.dre2n.dungeonsxl.game;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSign;
|
import io.github.dre2n.dungeonsxl.sign.DSign;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.game.Game;
|
import io.github.dre2n.dungeonsxl.game.Game;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.global;
|
package io.github.dre2n.dungeonsxl.global;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
|
@ -17,10 +17,10 @@
|
|||||||
package io.github.dre2n.dungeonsxl.loottable;
|
package io.github.dre2n.dungeonsxl.loottable;
|
||||||
|
|
||||||
import io.github.dre2n.caliburn.item.UniversalItemStack;
|
import io.github.dre2n.caliburn.item.UniversalItemStack;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
@ -168,7 +168,7 @@ public class DLootTable {
|
|||||||
public List<ItemStack> generateLootList() {
|
public List<ItemStack> generateLootList() {
|
||||||
List<ItemStack> lootList = new ArrayList<>();
|
List<ItemStack> lootList = new ArrayList<>();
|
||||||
for (Entry entry : entries) {
|
for (Entry entry : entries) {
|
||||||
if (NumberUtil.generateRandomInt(0, 100) < entry.getLootChance()) {
|
if (new Random().nextInt(100) < entry.getLootChance()) {
|
||||||
lootList.add(entry.getLootItem());
|
lootList.add(entry.getLootItem());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.loottable;
|
package io.github.dre2n.dungeonsxl.loottable;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.mob;
|
package io.github.dre2n.dungeonsxl.mob;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.mob;
|
package io.github.dre2n.dungeonsxl.mob;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.util.LegacyUtil;
|
import io.github.dre2n.dungeonsxl.util.LegacyUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.mob;
|
package io.github.dre2n.dungeonsxl.mob;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.mob;
|
package io.github.dre2n.dungeonsxl.mob;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.game.GameType;
|
import io.github.dre2n.dungeonsxl.game.GameType;
|
||||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
|
import de.erethon.commons.compatibility.Version;
|
||||||
import io.github.dre2n.caliburn.item.UniversalItemStack;
|
import io.github.dre2n.caliburn.item.UniversalItemStack;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
|
||||||
import io.github.dre2n.commons.compatibility.Version;
|
|
||||||
import io.github.dre2n.dungeonsxl.util.DeserializationUtil;
|
import io.github.dre2n.dungeonsxl.util.DeserializationUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.player.PlayerUtil;
|
import de.erethon.commons.player.PlayerUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dplayer.instance.DInstancePlayerUpdateEvent;
|
import io.github.dre2n.dungeonsxl.event.dplayer.instance.DInstancePlayerUpdateEvent;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.player.PlayerUtil;
|
import de.erethon.commons.player.PlayerUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerKickEvent;
|
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerKickEvent;
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Version;
|
import de.erethon.commons.compatibility.Version;
|
||||||
import io.github.dre2n.commons.player.PlayerUtil;
|
import de.erethon.commons.player.PlayerUtil;
|
||||||
import io.github.dre2n.commons.player.PlayerWrapper;
|
import de.erethon.commons.player.PlayerWrapper;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dgroup.DGroupCreateEvent;
|
import io.github.dre2n.dungeonsxl.event.dgroup.DGroupCreateEvent;
|
||||||
|
@ -16,9 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.player.PlayerCollection;
|
||||||
import io.github.dre2n.commons.player.PlayerCollection;
|
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
import io.github.dre2n.dungeonsxl.dungeon.Dungeon;
|
||||||
@ -43,6 +42,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -710,7 +710,7 @@ public class DGroup {
|
|||||||
newFloor = specifiedFloor;
|
newFloor = specifiedFloor;
|
||||||
type = DGameWorld.Type.DEFAULT;
|
type = DGameWorld.Type.DEFAULT;
|
||||||
} else if (floorsLeft > 0) {
|
} else if (floorsLeft > 0) {
|
||||||
int random = NumberUtil.generateRandomInt(0, floorsLeft);
|
int random = new Random().nextInt(floorsLeft);
|
||||||
newFloor = getUnplayedFloors().get(random);
|
newFloor = getUnplayedFloors().get(random);
|
||||||
type = DGameWorld.Type.DEFAULT;
|
type = DGameWorld.Type.DEFAULT;
|
||||||
} else {
|
} else {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
import io.github.dre2n.commons.compatibility.Internals;
|
import de.erethon.commons.compatibility.Internals;
|
||||||
import io.github.dre2n.commons.config.DREConfig;
|
import de.erethon.commons.config.DREConfig;
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.config.MainConfig;
|
import io.github.dre2n.dungeonsxl.config.MainConfig;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.player.PlayerUtil;
|
import de.erethon.commons.player.PlayerUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.player;
|
package io.github.dre2n.dungeonsxl.player;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.config.MessageConfig;
|
import de.erethon.commons.config.MessageConfig;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerKickEvent;
|
import io.github.dre2n.dungeonsxl.event.dplayer.DPlayerKickEvent;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.requirement;
|
package io.github.dre2n.dungeonsxl.requirement;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPlayerData;
|
import io.github.dre2n.dungeonsxl.player.DPlayerData;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.requirement;
|
package io.github.dre2n.dungeonsxl.requirement;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.requirement;
|
package io.github.dre2n.dungeonsxl.requirement;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.event.requirement.RequirementRegistrationEvent;
|
import io.github.dre2n.dungeonsxl.event.requirement.RequirementRegistrationEvent;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.reward;
|
package io.github.dre2n.dungeonsxl.reward;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.reward;
|
package io.github.dre2n.dungeonsxl.reward;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.reward;
|
package io.github.dre2n.dungeonsxl.reward;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.event.reward.RewardRegistrationEvent;
|
import io.github.dre2n.dungeonsxl.event.reward.RewardRegistrationEvent;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.reward;
|
package io.github.dre2n.dungeonsxl.reward;
|
||||||
|
|
||||||
|
import de.erethon.commons.gui.PageGUI;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
import io.github.dre2n.dungeonsxl.player.DGlobalPlayer;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
import io.github.dre2n.dungeonsxl.util.PageGUI;
|
|
||||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.RewardChest;
|
import io.github.dre2n.dungeonsxl.world.block.RewardChest;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.util.LegacyUtil;
|
import io.github.dre2n.dungeonsxl.util.LegacyUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.TeamBed;
|
import io.github.dre2n.dungeonsxl.world.block.TeamBed;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Sign;
|
import org.bukkit.block.Sign;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.loottable.DLootTable;
|
import io.github.dre2n.dungeonsxl.loottable.DLootTable;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.RewardChest;
|
import io.github.dre2n.dungeonsxl.world.block.RewardChest;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.commandsxl.CommandsXL;
|
import io.github.dre2n.commandsxl.CommandsXL;
|
||||||
import io.github.dre2n.commandsxl.command.CCommand;
|
import io.github.dre2n.commandsxl.command.CCommand;
|
||||||
import io.github.dre2n.commandsxl.command.CCommandExecutorTask;
|
import io.github.dre2n.commandsxl.command.CCommandExecutorTask;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
|
||||||
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
import io.github.dre2n.dungeonsxl.DungeonsXL;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.event.dsign.DSignRegistrationEvent;
|
import io.github.dre2n.dungeonsxl.event.dsign.DSignRegistrationEvent;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
import io.github.dre2n.dungeonsxl.player.DPermission;
|
import io.github.dre2n.dungeonsxl.player.DPermission;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.caliburn.CaliburnAPI;
|
import io.github.dre2n.caliburn.CaliburnAPI;
|
||||||
import io.github.dre2n.caliburn.item.UniversalItem;
|
import io.github.dre2n.caliburn.item.UniversalItem;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.TeamFlag;
|
import io.github.dre2n.dungeonsxl.world.block.TeamFlag;
|
||||||
import org.bukkit.block.Sign;
|
import org.bukkit.block.Sign;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
||||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.game.Game;
|
import io.github.dre2n.dungeonsxl.game.Game;
|
||||||
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
import io.github.dre2n.dungeonsxl.player.DGamePlayer;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.LockedDoor;
|
import io.github.dre2n.dungeonsxl.world.block.LockedDoor;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.BlockUtil;
|
import de.erethon.commons.misc.BlockUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.block.ProtectedBlock;
|
import io.github.dre2n.dungeonsxl.world.block.ProtectedBlock;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.FileUtil;
|
import de.erethon.commons.misc.FileUtil;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.trigger.SignTrigger;
|
import io.github.dre2n.dungeonsxl.trigger.SignTrigger;
|
||||||
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
import io.github.dre2n.dungeonsxl.world.DEditWorld;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign;
|
package io.github.dre2n.dungeonsxl.sign;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
import io.github.dre2n.dungeonsxl.trigger.InteractTrigger;
|
||||||
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
import io.github.dre2n.dungeonsxl.world.DGameWorld;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign.lobby;
|
package io.github.dre2n.dungeonsxl.sign.lobby;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.config.DMessage;
|
import io.github.dre2n.dungeonsxl.config.DMessage;
|
||||||
import io.github.dre2n.dungeonsxl.game.GameType;
|
import io.github.dre2n.dungeonsxl.game.GameType;
|
||||||
import io.github.dre2n.dungeonsxl.game.GameTypeDefault;
|
import io.github.dre2n.dungeonsxl.game.GameTypeDefault;
|
||||||
@ -167,7 +167,7 @@ public class ReadySign extends DSign {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (dPlayer.isReady()) {
|
if (dPlayer.isReady()) {
|
||||||
MessageUtil.sendMessage(dPlayer.getPlayer(), plugin.getMessageConfig().getMessage(dPlayer.isReady() ? DMessage.PLAYER_READY : DMessage.ERROR_READY));
|
MessageUtil.sendMessage(dPlayer.getPlayer(), (dPlayer.isReady() ? DMessage.PLAYER_READY : DMessage.ERROR_READY).getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign.lobby;
|
package io.github.dre2n.dungeonsxl.sign.lobby;
|
||||||
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSign;
|
import io.github.dre2n.dungeonsxl.sign.DSign;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign.message;
|
package io.github.dre2n.dungeonsxl.sign.message;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
||||||
import io.github.dre2n.dungeonsxl.sign.PerPlayerSign;
|
import io.github.dre2n.dungeonsxl.sign.PerPlayerSign;
|
||||||
|
@ -18,12 +18,12 @@ package io.github.dre2n.dungeonsxl.sign.message;
|
|||||||
|
|
||||||
import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
import com.gmail.filoghost.holographicdisplays.api.Hologram;
|
||||||
import com.gmail.filoghost.holographicdisplays.api.HologramsAPI;
|
import com.gmail.filoghost.holographicdisplays.api.HologramsAPI;
|
||||||
|
import de.erethon.commons.compatibility.CompatibilityHandler;
|
||||||
|
import de.erethon.commons.compatibility.Version;
|
||||||
|
import de.erethon.commons.misc.EnumUtil;
|
||||||
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.caliburn.CaliburnAPI;
|
import io.github.dre2n.caliburn.CaliburnAPI;
|
||||||
import io.github.dre2n.caliburn.item.UniversalItem;
|
import io.github.dre2n.caliburn.item.UniversalItem;
|
||||||
import io.github.dre2n.commons.compatibility.CompatibilityHandler;
|
|
||||||
import io.github.dre2n.commons.compatibility.Version;
|
|
||||||
import io.github.dre2n.commons.misc.EnumUtil;
|
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSign;
|
import io.github.dre2n.dungeonsxl.sign.DSign;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package io.github.dre2n.dungeonsxl.sign.message;
|
package io.github.dre2n.dungeonsxl.sign.message;
|
||||||
|
|
||||||
import io.github.dre2n.commons.chat.MessageUtil;
|
import de.erethon.commons.chat.MessageUtil;
|
||||||
import io.github.dre2n.commons.misc.NumberUtil;
|
import de.erethon.commons.misc.NumberUtil;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSign;
|
import io.github.dre2n.dungeonsxl.sign.DSign;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
import io.github.dre2n.dungeonsxl.sign.DSignType;
|
||||||
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
import io.github.dre2n.dungeonsxl.sign.DSignTypeDefault;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user