From cbf41729a9f05e485f067e3dd42b04490e2e2699 Mon Sep 17 00:00:00 2001 From: Butzlabben Date: Sun, 3 Mar 2019 16:28:19 +0100 Subject: [PATCH] Added site generation to pom.xml Fixed encoding of some files --- pom.xml | 256 +++++++++--------- .../de/butzlabben/world/config/GuiConfig.java | 4 +- .../butzlabben/world/config/PluginConfig.java | 10 +- .../ComingSoonClickListener.java | 2 +- .../butzlabben/world/wrapper/SystemWorld.java | 6 +- 5 files changed, 143 insertions(+), 135 deletions(-) diff --git a/pom.xml b/pom.xml index 8aa6b97..4ac7981 100644 --- a/pom.xml +++ b/pom.xml @@ -1,134 +1,142 @@ - 4.0.0 - de.butzlabben.world - WorldSystem - 2.4.4.1 - + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 + de.butzlabben.world + WorldSystem + 2.4.4.1 + UTF-8 - ${project.version} - Build:${project.build.number} - + Build:${project.build.number} + + - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - - + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.0.1 + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 2.6 + + + - - package - src/main/java - - - src/main/resources - true - LICENSE.txt - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - - maven-compiler-plugin - 3.3 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-shade-plugin - 3.1.0 - - - package - - shade - - - - - - + + package + src/main/java + + + src/main/resources + true + + LICENSE.txt + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.0.1 + + + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-shade-plugin + 3.1.0 + + + attach-javadocs + + shade + + + + + + - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - fawe-repo - http://ci.athion.net/job/FastAsyncWorldEdit/ws/mvn/ - - - we-repo - >http://maven.sk89q.com/repo/ - - - - pp-public - http://nexus.myplayplanet.net/repository/public/ - + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + fawe-repo + http://ci.athion.net/job/FastAsyncWorldEdit/ws/mvn/ + + + we-repo + >http://maven.sk89q.com/repo/ + + + + pp-public + http://nexus.myplayplanet.net/repository/public/ + - - - vault-repo - http://nexus.hc.to/content/repositories/pub_releases - - - + + + vault-repo + http://nexus.hc.to/content/repositories/pub_releases + + + mojang Mojang's Repository https://libraries.minecraft.net/ - + + + + + org.spigotmc + spigot-api + 1.13-R0.1-SNAPSHOT + provided + - - - org.spigotmc - spigot-api - 1.13-R0.1-SNAPSHOT - provided - - com.mojang authlib 1.5.21 - provided + provided - - - - - com.sk98q.worldedit - FastAsnycWorldEdit - system - 1.0 - ${pom.basedir}/lib/FastAsyncWorldEdit.jar - - + + + + + com.sk98q.worldedit + FastAsnycWorldEdit + system + 1.0 + ${pom.basedir}/lib/FastAsyncWorldEdit.jar + + com.sk89q worldedit @@ -136,18 +144,18 @@ provided - - net.myplayplanet - CommandFramework - 2.0.0-SNAPSHOT - compile - + + net.myplayplanet + CommandFramework + 2.0.0-SNAPSHOT + compile + - - net.milkbowl.vault - VaultAPI - 1.6 - provided - - + + net.milkbowl.vault + VaultAPI + 1.6 + provided + + \ No newline at end of file diff --git a/src/main/java/de/butzlabben/world/config/GuiConfig.java b/src/main/java/de/butzlabben/world/config/GuiConfig.java index 6997110..13bc40f 100644 --- a/src/main/java/de/butzlabben/world/config/GuiConfig.java +++ b/src/main/java/de/butzlabben/world/config/GuiConfig.java @@ -105,7 +105,7 @@ public class GuiConfig { try { return Material.valueOf(cfg.getString(path + ".material").toUpperCase()); } catch (IllegalArgumentException ex) { - Bukkit.getConsoleSender().sendMessage(PluginConfig.getPrefix() + "§cUnknown material: " + path); + Bukkit.getConsoleSender().sendMessage(PluginConfig.getPrefix() + "§cUnknown material: " + path); return null; } } @@ -120,7 +120,7 @@ public class GuiConfig { return new OrcItem(getMaterial(cfg, path), getDisplay(cfg, path), getLore(cfg, path)); } catch (Exception e) { } - return OrcItem.error.clone().setDisplay("§c" + path); + return OrcItem.error.clone().setDisplay("§c" + path); } public static OrcItem getEnabled() { diff --git a/src/main/java/de/butzlabben/world/config/PluginConfig.java b/src/main/java/de/butzlabben/world/config/PluginConfig.java index f51b8e1..9f5d274 100644 --- a/src/main/java/de/butzlabben/world/config/PluginConfig.java +++ b/src/main/java/de/butzlabben/world/config/PluginConfig.java @@ -36,13 +36,13 @@ public class PluginConfig { file = f; if (file.exists()) { YamlConfiguration cfg = getConfig(); - if (false == (cfg.isString("worldfolder") && cfg.isInt("unloadingtime") + if (!(cfg.isString("worldfolder") && cfg.isInt("unloadingtime") && cfg.isBoolean("survival") && cfg.isString("language") && cfg.isString("prefix") && cfg.isInt("request_expires") && cfg.isBoolean("need_confirm") && cfg.isBoolean("contact_authserver") && cfg.isBoolean("spawn_teleportation") - && cfg.isInt("delete_after") && cfg.isBoolean("worldtemplates.multi_choose") + && cfg.isInt("delete_after") && cfg.isBoolean("worldtemplates.multi_choose") && cfg.isString("worldtemplates.default") && - + cfg.isInt("lagsystem.period_in_seconds") && cfg.isInt("lagsystem.entities_per_world") && cfg.isBoolean("lagsystem.garbagecollector.use") && cfg.isInt("lagsystem.garbagecollector.period_in_minutes") && @@ -88,7 +88,7 @@ public class PluginConfig { // Should fix #2 if (getSpawn().getWorld() == null) { - Bukkit.getConsoleSender().sendMessage(getPrefix() + "§cWorld is null in spawn.world!"); + Bukkit.getConsoleSender().sendMessage(getPrefix() + "§cWorld is null in spawn.world!"); } } @@ -154,7 +154,7 @@ public class PluginConfig { } public static String getPrefix() { - return ChatColor.translateAlternateColorCodes('&', getConfig().getString("prefix", "§8[§3WorldSystem§8] §6")); + return ChatColor.translateAlternateColorCodes('&', getConfig().getString("prefix", "§8[§3WorldSystem§8] §6")); } public static Location getWorldSpawn(World w) { diff --git a/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java b/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java index 8ae866c..f137686 100644 --- a/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java +++ b/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java @@ -11,7 +11,7 @@ public class ComingSoonClickListener implements OrcClickListener { @Override public void onClick(Player p, OrcInventory inv, OrcItem item) { p.closeInventory(); - p.sendMessage("§cComing soon..."); + p.sendMessage("§cComing soon..."); } } diff --git a/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java b/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java index 11787cf..ad0b562 100644 --- a/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java +++ b/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java @@ -207,7 +207,7 @@ public class SystemWorld { // FileUtils.deleteDirectory(new // File(Bukkit.getWorldContainer(), worldname)); // } catch (IOException e) { - // p.sendMessage(PluginConfig.getPrefix() + "§cError"); + // p.sendMessage(PluginConfig.getPrefix() + "§cError"); // e.printStackTrace(); // } } @@ -215,7 +215,7 @@ public class SystemWorld { FileUtils.moveDirectoryToDirectory(world, Bukkit.getWorldContainer(), false); } catch (IOException e) { System.err.println("Couldn't load world of " + p.getName()); - p.sendMessage(PluginConfig.getPrefix() + "§cError: " + e.getMessage()); + p.sendMessage(PluginConfig.getPrefix() + "§cError: " + e.getMessage()); e.printStackTrace(); } } @@ -302,7 +302,7 @@ public class SystemWorld { try { FileUtils.moveDirectoryToDirectory(world, Bukkit.getWorldContainer(), false); } catch (IOException e) { - p.sendMessage(PluginConfig.getPrefix() + "§cError: " + e.getMessage()); + p.sendMessage(PluginConfig.getPrefix() + "§cError: " + e.getMessage()); System.err.println("Couldn't load world of " + p.getName()); e.printStackTrace(); return false;