diff --git a/src/main/java/de/fanta/challenges/Challenges.java b/src/main/java/de/fanta/challenges/Challenges.java index ab1819b..89390b6 100644 --- a/src/main/java/de/fanta/challenges/Challenges.java +++ b/src/main/java/de/fanta/challenges/Challenges.java @@ -158,10 +158,6 @@ AllItemsChallenge.loadItems(); } - if (plugin.getServerType() == ServerType.ADVENTURE || plugin.getServerType() == ServerType.CHALLENGE_LOAD) { - startResetTask(); - } - if (plugin.getServerType() == ServerType.ADVENTURE) { File texturepack = new File("world/resources.zip"); if (texturepack.exists()) { @@ -222,6 +218,9 @@ EventRegistration.pM.callEvent(new ServerStatusChangedEvent(true)); EventRegistration.pM.callEvent(new TimerChangedEvent(timer.isRunning())); EventRegistration.pM.callEvent(new PlayerCountChangedEvent(Bukkit.getOnlinePlayers().size() - plugin.getVanish().countVanishPlayers())); + if (plugin.getServerType() == ServerType.ADVENTURE || plugin.getServerType() == ServerType.CHALLENGE_LOAD) { + startResetTask(); + } }, 200L); getLogger().info("Plugin loaded!"); } @@ -425,13 +424,13 @@ public void delteTexturePack() { File texturepackdownload = new File("/home/web/fanta/AdventureMap-TexturePacks/" + texturepackid.toString()); if (texturepackdownload.isDirectory()) { - //texturepackdownload.delete(); try { FileUtils.deleteDirectory(texturepackdownload); + getLogger().info("Adventure TexturePack deleted. " + texturepackdownload.getAbsolutePath()); } catch (IOException e) { throw new RuntimeException(e); } - getLogger().info("Adventure TexturePack deleted. " + texturepackdownload.getAbsolutePath()); + } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 0dce132..45d2ade 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -24,14 +24,11 @@ challenges: description: Main Command usage: Benutze /Challenges - aliases: - - c + aliases: [challenge, c] adventure: description: Main Command alias usage: Benutze /adventure - aliases: - - adventure - - a + aliases: [adventure, a] backpack: description: Oeffne ein Backpack usage: Benutze /backpack oder /bp