diff --git a/WorldSystem/.classpath b/WorldSystem/.classpath index dee8990..f4288c0 100644 --- a/WorldSystem/.classpath +++ b/WorldSystem/.classpath @@ -1,9 +1,18 @@ - - - - - - + + + + + + + + + + + + + + + diff --git a/WorldSystem/.gitignore b/WorldSystem/.gitignore index d49bac3..fde7bce 100644 --- a/WorldSystem/.gitignore +++ b/WorldSystem/.gitignore @@ -3,4 +3,5 @@ bin/ WorldSystem.iml .project -.classpath \ No newline at end of file +.classpath +/target/ diff --git a/WorldSystem/.project b/WorldSystem/.project index 8a45e90..86bd134 100644 --- a/WorldSystem/.project +++ b/WorldSystem/.project @@ -15,8 +15,14 @@ + + org.eclipse.m2e.core.maven2Builder + + + + org.eclipse.m2e.core.maven2Nature org.eclipse.jdt.core.javanature net.sourceforge.metrics.nature diff --git a/WorldSystem/.settings/org.eclipse.core.resources.prefs b/WorldSystem/.settings/org.eclipse.core.resources.prefs index d330e34..715c459 100644 --- a/WorldSystem/.settings/org.eclipse.core.resources.prefs +++ b/WorldSystem/.settings/org.eclipse.core.resources.prefs @@ -1,7 +1,7 @@ eclipse.preferences.version=1 -encoding//src/de/butzlabben/world/WorldSystem.java=UTF-8 -encoding//src/de/butzlabben/world/command/WSCommand.java=UTF-8 -encoding//src/de/butzlabben/world/config/GuiConfig.java=Cp1252 -encoding//src/de/butzlabben/world/config/PluginConfig.java=Cp1252 -encoding//src/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java=Cp1252 -encoding//src/de/butzlabben/world/wrapper/SystemWorld.java=Cp1252 +encoding//src/main/java/de/butzlabben/world/WorldSystem.java=UTF-8 +encoding//src/main/java/de/butzlabben/world/command/WSCommand.java=UTF-8 +encoding//src/main/java/de/butzlabben/world/config/GuiConfig.java=Cp1252 +encoding//src/main/java/de/butzlabben/world/config/PluginConfig.java=Cp1252 +encoding//src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java=Cp1252 +encoding//src/main/java/de/butzlabben/world/wrapper/SystemWorld.java=Cp1252 diff --git a/WorldSystem/.settings/org.eclipse.jdt.core.prefs b/WorldSystem/.settings/org.eclipse.jdt.core.prefs index bb35fa0..df46a9a 100644 --- a/WorldSystem/.settings/org.eclipse.jdt.core.prefs +++ b/WorldSystem/.settings/org.eclipse.jdt.core.prefs @@ -8,4 +8,5 @@ org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.source=1.8 diff --git a/WorldSystem/pom.xml b/WorldSystem/pom.xml new file mode 100644 index 0000000..c13d750 --- /dev/null +++ b/WorldSystem/pom.xml @@ -0,0 +1,99 @@ + + 4.0.0 + de.butzlabben.world + WorldSystem + 2.4.0 + + UTF-8 + - + ${project.version} + Build:${project.build.number} + + + + package + src/main/java + + + src/main/resources + + + + + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + + + + + 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/ + + + + + mojang + Mojang's Repository + https://libraries.minecraft.net/ + + + + + + + org.spigotmc + spigot-api + 1.13-R0.1-SNAPSHOT + provided + + + + com.mojang + authlib + 1.5.21 + + + + + + + + com.sk98q.worldedit + FastAsnycWorldEdit + system + 1.0 + C:/FastAsyncWorldEdit.jar + + + + com.sk89q.worldedit + worldedit-bukkit + 6.1.4-SNAPSHOT + provided + + + \ No newline at end of file diff --git a/WorldSystem/src/main/java/LICENSE.txt b/WorldSystem/src/main/java/LICENSE.txt new file mode 100644 index 0000000..238a88c --- /dev/null +++ b/WorldSystem/src/main/java/LICENSE.txt @@ -0,0 +1,94 @@ +Creative Commons Attribution-ShareAlike 4.0 International Public License +By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. + +Section 1 – Definitions. + +Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. +Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. +BY-SA Compatible License means a license listed at creativecommons.org/compatiblelicenses, approved by Creative Commons as essentially the equivalent of this Public License. +Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. +Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. +Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. +License Elements means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. +Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License. +Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. +Licensor means the individual(s) or entity(ies) granting rights under this Public License. +Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. +Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. +You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning. +Section 2 – Scope. + +License grant. +Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: +reproduce and Share the Licensed Material, in whole or in part; and +produce, reproduce, and Share Adapted Material. +Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. +Term. The term of this Public License is specified in Section 6(a). +Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. +Downstream recipients. +Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. +Additional offer from the Licensor – Adapted Material. Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. +No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. +No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). +Other rights. + +Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. +Patent and trademark rights are not licensed under this Public License. +To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. +Section 3 – License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the following conditions. + +Attribution. + +If You Share the Licensed Material (including in modified form), You must: + +retain the following if it is supplied by the Licensor with the Licensed Material: +identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); +a copyright notice; +a notice that refers to this Public License; +a notice that refers to the disclaimer of warranties; +a URI or hyperlink to the Licensed Material to the extent reasonably practicable; +indicate if You modified the Licensed Material and retain an indication of any previous modifications; and +indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. +You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. +If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. +ShareAlike. +In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. + +The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. +You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. +You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. +Section 4 – Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: + +for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; +if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and +You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. +For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. +Section 5 – Disclaimer of Warranties and Limitation of Liability. + +Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You. +To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You. +The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. +Section 6 – Term and Termination. + +This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. +Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: + +automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or +upon express reinstatement by the Licensor. +For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. +For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. +Sections 1, 5, 6, 7, and 8 survive termination of this Public License. +Section 7 – Other Terms and Conditions. + +The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. +Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. +Section 8 – Interpretation. + +For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. +To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. +No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. +Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. \ No newline at end of file diff --git a/WorldSystem/src/de/butzlabben/autoupdater/AutoUpdate.java b/WorldSystem/src/main/java/de/butzlabben/autoupdater/AutoUpdate.java similarity index 100% rename from WorldSystem/src/de/butzlabben/autoupdater/AutoUpdate.java rename to WorldSystem/src/main/java/de/butzlabben/autoupdater/AutoUpdate.java diff --git a/WorldSystem/src/de/butzlabben/autoupdater/AutoUpdater.java b/WorldSystem/src/main/java/de/butzlabben/autoupdater/AutoUpdater.java similarity index 100% rename from WorldSystem/src/de/butzlabben/autoupdater/AutoUpdater.java rename to WorldSystem/src/main/java/de/butzlabben/autoupdater/AutoUpdater.java diff --git a/WorldSystem/src/de/butzlabben/autoupdater/UpdateInformations.java b/WorldSystem/src/main/java/de/butzlabben/autoupdater/UpdateInformations.java similarity index 93% rename from WorldSystem/src/de/butzlabben/autoupdater/UpdateInformations.java rename to WorldSystem/src/main/java/de/butzlabben/autoupdater/UpdateInformations.java index 62fb9c0..2379d59 100644 --- a/WorldSystem/src/de/butzlabben/autoupdater/UpdateInformations.java +++ b/WorldSystem/src/main/java/de/butzlabben/autoupdater/UpdateInformations.java @@ -27,7 +27,7 @@ public class UpdateInformations { return ui; } - private static String callURL(String URL) { + public static String callURL(String URL) { StringBuilder sb = new StringBuilder(); URLConnection urlConn = null; InputStreamReader in = null; diff --git a/WorldSystem/src/de/butzlabben/inventory/CostumInv.java b/WorldSystem/src/main/java/de/butzlabben/inventory/CostumInv.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/CostumInv.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/CostumInv.java diff --git a/WorldSystem/src/de/butzlabben/inventory/DependListener.java b/WorldSystem/src/main/java/de/butzlabben/inventory/DependListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/DependListener.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/DependListener.java diff --git a/WorldSystem/src/de/butzlabben/inventory/OrcClickListener.java b/WorldSystem/src/main/java/de/butzlabben/inventory/OrcClickListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/OrcClickListener.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/OrcClickListener.java diff --git a/WorldSystem/src/de/butzlabben/inventory/OrcInventory.java b/WorldSystem/src/main/java/de/butzlabben/inventory/OrcInventory.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/OrcInventory.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/OrcInventory.java diff --git a/WorldSystem/src/de/butzlabben/inventory/OrcItem.java b/WorldSystem/src/main/java/de/butzlabben/inventory/OrcItem.java similarity index 94% rename from WorldSystem/src/de/butzlabben/inventory/OrcItem.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/OrcItem.java index 0e0117a..5ecf546 100644 --- a/WorldSystem/src/de/butzlabben/inventory/OrcItem.java +++ b/WorldSystem/src/main/java/de/butzlabben/inventory/OrcItem.java @@ -47,6 +47,7 @@ public class OrcItem { setItemStack(material, data, display, lore); } + @SuppressWarnings("deprecation") public OrcItem setItemStack(Material mat, byte data, String display, List lore) { is = new ItemStack(mat, 1 , data); ItemMeta meta = is.getItemMeta(); diff --git a/WorldSystem/src/de/butzlabben/inventory/OrcListener.java b/WorldSystem/src/main/java/de/butzlabben/inventory/OrcListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/OrcListener.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/OrcListener.java diff --git a/WorldSystem/src/de/butzlabben/inventory/pages/InventoryPage.java b/WorldSystem/src/main/java/de/butzlabben/inventory/pages/InventoryPage.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/pages/InventoryPage.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/pages/InventoryPage.java diff --git a/WorldSystem/src/de/butzlabben/inventory/pages/ItemConverter.java b/WorldSystem/src/main/java/de/butzlabben/inventory/pages/ItemConverter.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/pages/ItemConverter.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/pages/ItemConverter.java diff --git a/WorldSystem/src/de/butzlabben/inventory/pages/PageGUICreator.java b/WorldSystem/src/main/java/de/butzlabben/inventory/pages/PageGUICreator.java similarity index 100% rename from WorldSystem/src/de/butzlabben/inventory/pages/PageGUICreator.java rename to WorldSystem/src/main/java/de/butzlabben/inventory/pages/PageGUICreator.java diff --git a/WorldSystem/src/de/butzlabben/world/GCRunnable.java b/WorldSystem/src/main/java/de/butzlabben/world/GCRunnable.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/GCRunnable.java rename to WorldSystem/src/main/java/de/butzlabben/world/GCRunnable.java diff --git a/WorldSystem/src/de/butzlabben/world/GameProfileBuilder.java b/WorldSystem/src/main/java/de/butzlabben/world/GameProfileBuilder.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/GameProfileBuilder.java rename to WorldSystem/src/main/java/de/butzlabben/world/GameProfileBuilder.java diff --git a/WorldSystem/src/de/butzlabben/world/WorldCheckerRunnable.java b/WorldSystem/src/main/java/de/butzlabben/world/WorldCheckerRunnable.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/WorldCheckerRunnable.java rename to WorldSystem/src/main/java/de/butzlabben/world/WorldCheckerRunnable.java diff --git a/WorldSystem/src/de/butzlabben/world/WorldSystem.java b/WorldSystem/src/main/java/de/butzlabben/world/WorldSystem.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/WorldSystem.java rename to WorldSystem/src/main/java/de/butzlabben/world/WorldSystem.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSAddmemberCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSAddmemberCommand.java similarity index 94% rename from WorldSystem/src/de/butzlabben/world/command/WSAddmemberCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSAddmemberCommand.java index 3872090..31e4200 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSAddmemberCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSAddmemberCommand.java @@ -9,12 +9,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldAddmemberEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldAddmemberEvent; public class WSAddmemberCommand implements CommandExecutor{ diff --git a/WorldSystem/src/de/butzlabben/world/command/WSCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSConfirmCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSConfirmCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSConfirmCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSConfirmCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSDeleteCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSDeleteCommand.java similarity index 95% rename from WorldSystem/src/de/butzlabben/world/command/WSDeleteCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSDeleteCommand.java index 048e65e..2131c4d 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSDeleteCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSDeleteCommand.java @@ -10,11 +10,11 @@ import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldDeleteEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; +import de.butzlabben.world.event.WorldDeleteEvent; import de.butzlabben.world.wrapper.SystemWorld; public class WSDeleteCommand implements CommandExecutor { diff --git a/WorldSystem/src/de/butzlabben/world/command/WSDelmemberCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSDelmemberCommand.java similarity index 94% rename from WorldSystem/src/de/butzlabben/world/command/WSDelmemberCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSDelmemberCommand.java index 4b61ebc..a6dcb9c 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSDelmemberCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSDelmemberCommand.java @@ -9,12 +9,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldRemovememberEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldRemovememberEvent; public class WSDelmemberCommand implements CommandExecutor { diff --git a/WorldSystem/src/de/butzlabben/world/command/WSFireCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSFireCommand.java similarity index 93% rename from WorldSystem/src/de/butzlabben/world/command/WSFireCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSFireCommand.java index 6cc2daa..b247be9 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSFireCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSFireCommand.java @@ -8,12 +8,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldToggleFireEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldToggleFireEvent; import de.butzlabben.world.wrapper.SystemWorld; public class WSFireCommand implements CommandExecutor { diff --git a/WorldSystem/src/de/butzlabben/world/command/WSGetCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSGetCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSGetCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSGetCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSHomeCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSHomeCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSHomeCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSHomeCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSInfoCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSInfoCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSInfoCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSInfoCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSLeaveCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSLeaveCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSLeaveCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSLeaveCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSResetCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSResetCommand.java similarity index 95% rename from WorldSystem/src/de/butzlabben/world/command/WSResetCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSResetCommand.java index 0f37945..dcf29eb 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSResetCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSResetCommand.java @@ -14,12 +14,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldResetEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldResetEvent; import de.butzlabben.world.wrapper.SystemWorld; public class WSResetCommand implements CommandExecutor { diff --git a/WorldSystem/src/de/butzlabben/world/command/WSSethomeCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSSethomeCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSSethomeCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSSethomeCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSTPCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSTPCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSTnTCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSTnTCommand.java similarity index 93% rename from WorldSystem/src/de/butzlabben/world/command/WSTnTCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSTnTCommand.java index 143c3c2..f812ba3 100644 --- a/WorldSystem/src/de/butzlabben/world/command/WSTnTCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSTnTCommand.java @@ -8,12 +8,12 @@ import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; -import de.butzlabben.event.WorldToggleTntEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldToggleTntEvent; import de.butzlabben.world.wrapper.SystemWorld; public class WSTnTCommand implements CommandExecutor { diff --git a/WorldSystem/src/de/butzlabben/world/command/WSToggleBuildCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleBuildCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSToggleBuildCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleBuildCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSToggleGMCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleGMCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSToggleGMCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleGMCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/command/WSToggleTPCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleTPCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/command/WSToggleTPCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/command/WSToggleTPCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/config/DependenceConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/DependenceConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java diff --git a/WorldSystem/src/de/butzlabben/world/config/Entry.java b/WorldSystem/src/main/java/de/butzlabben/world/config/Entry.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/Entry.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/Entry.java diff --git a/WorldSystem/src/de/butzlabben/world/config/GuiConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/GuiConfig.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/GuiConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/GuiConfig.java diff --git a/WorldSystem/src/de/butzlabben/world/config/MessageConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/MessageConfig.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/MessageConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/MessageConfig.java diff --git a/WorldSystem/src/de/butzlabben/world/config/PluginConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/PluginConfig.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/PluginConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/PluginConfig.java diff --git a/WorldSystem/src/de/butzlabben/world/config/SettingsConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/SettingsConfig.java similarity index 96% rename from WorldSystem/src/de/butzlabben/world/config/SettingsConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/SettingsConfig.java index bffa0cd..9ac113d 100644 --- a/WorldSystem/src/de/butzlabben/world/config/SettingsConfig.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/config/SettingsConfig.java @@ -27,6 +27,7 @@ public class SettingsConfig { private static File file; + @SuppressWarnings("deprecation") public static void editWorld(World w) { YamlConfiguration cfg = getConfig(); diff --git a/WorldSystem/src/de/butzlabben/world/config/WorldConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/WorldConfig.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/WorldConfig.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/WorldConfig.java diff --git a/WorldSystem/src/de/butzlabben/world/config/WorldPerm.java b/WorldSystem/src/main/java/de/butzlabben/world/config/WorldPerm.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/config/WorldPerm.java rename to WorldSystem/src/main/java/de/butzlabben/world/config/WorldPerm.java diff --git a/WorldSystem/src/de/butzlabben/event/WorldAddmemberEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldAddmemberEvent.java similarity index 91% rename from WorldSystem/src/de/butzlabben/event/WorldAddmemberEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldAddmemberEvent.java index c83720f..d444d38 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldAddmemberEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldAddmemberEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import java.util.UUID; diff --git a/WorldSystem/src/de/butzlabben/event/WorldCreateEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldCreateEvent.java similarity index 92% rename from WorldSystem/src/de/butzlabben/event/WorldCreateEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldCreateEvent.java index bfe9845..1762827 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldCreateEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldCreateEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.WorldCreator; import org.bukkit.entity.Player; diff --git a/WorldSystem/src/de/butzlabben/event/WorldDeleteEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldDeleteEvent.java similarity index 91% rename from WorldSystem/src/de/butzlabben/event/WorldDeleteEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldDeleteEvent.java index 661c375..a037f1e 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldDeleteEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldDeleteEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.command.CommandSender; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/event/WorldEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldEvent.java similarity index 86% rename from WorldSystem/src/de/butzlabben/event/WorldEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldEvent.java index b4f110e..3cd3828 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.event.Cancellable; import org.bukkit.event.Event; diff --git a/WorldSystem/src/de/butzlabben/event/WorldLoadEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldLoadEvent.java similarity index 91% rename from WorldSystem/src/de/butzlabben/event/WorldLoadEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldLoadEvent.java index 282e694..e26ec0d 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldLoadEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldLoadEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/event/WorldRemovememberEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldRemovememberEvent.java similarity index 91% rename from WorldSystem/src/de/butzlabben/event/WorldRemovememberEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldRemovememberEvent.java index 7ec8706..4df1adb 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldRemovememberEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldRemovememberEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import java.util.UUID; diff --git a/WorldSystem/src/de/butzlabben/event/WorldResetEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldResetEvent.java similarity index 91% rename from WorldSystem/src/de/butzlabben/event/WorldResetEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldResetEvent.java index d8ce9ca..9994819 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldResetEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldResetEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.command.CommandSender; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/event/WorldToggleFireEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleFireEvent.java similarity index 92% rename from WorldSystem/src/de/butzlabben/event/WorldToggleFireEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleFireEvent.java index 3480a22..86358fd 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldToggleFireEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleFireEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.command.CommandSender; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/event/WorldToggleTntEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleTntEvent.java similarity index 92% rename from WorldSystem/src/de/butzlabben/event/WorldToggleTntEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleTntEvent.java index 607ceac..96709e5 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldToggleTntEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldToggleTntEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.command.CommandSender; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/event/WorldUnloadEvent.java b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldUnloadEvent.java similarity index 89% rename from WorldSystem/src/de/butzlabben/event/WorldUnloadEvent.java rename to WorldSystem/src/main/java/de/butzlabben/world/event/WorldUnloadEvent.java index 180d4ab..e8399f7 100644 --- a/WorldSystem/src/de/butzlabben/event/WorldUnloadEvent.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/event/WorldUnloadEvent.java @@ -1,4 +1,4 @@ -package de.butzlabben.event; +package de.butzlabben.world.event; import org.bukkit.event.HandlerList; diff --git a/WorldSystem/src/de/butzlabben/world/gui/GuiCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/GuiCommand.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/GuiCommand.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/GuiCommand.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/PlayerOptionsGUI.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/PlayerOptionsGUI.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/PlayerOptionsGUI.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/PlayerOptionsGUI.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/PlayersPageGUI.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/PlayersPageGUI.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/PlayersPageGUI.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/PlayersPageGUI.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/WorldOptionsGUI.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/WorldOptionsGUI.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/WorldOptionsGUI.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/WorldOptionsGUI.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/WorldSystemGUI.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/WorldSystemGUI.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/WorldSystemGUI.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/WorldSystemGUI.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/ComingSoonClickListener.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/clicklistener/CommandExecutorClickListener.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/CommandExecutorClickListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/clicklistener/CommandExecutorClickListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/CommandExecutorClickListener.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/clicklistener/InventoryOpenClickListener.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/InventoryOpenClickListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/clicklistener/InventoryOpenClickListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/clicklistener/InventoryOpenClickListener.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/playeroption/BuildStatus.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/BuildStatus.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/playeroption/BuildStatus.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/BuildStatus.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/playeroption/GamemodeStatus.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/GamemodeStatus.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/playeroption/GamemodeStatus.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/GamemodeStatus.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/playeroption/TeleportStatus.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/TeleportStatus.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/playeroption/TeleportStatus.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/playeroption/TeleportStatus.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/worldoption/FireStatus.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/worldoption/FireStatus.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/worldoption/FireStatus.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/worldoption/FireStatus.java diff --git a/WorldSystem/src/de/butzlabben/world/gui/worldoption/TntStatus.java b/WorldSystem/src/main/java/de/butzlabben/world/gui/worldoption/TntStatus.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/gui/worldoption/TntStatus.java rename to WorldSystem/src/main/java/de/butzlabben/world/gui/worldoption/TntStatus.java diff --git a/WorldSystem/src/de/butzlabben/world/listener/BlockListener.java b/WorldSystem/src/main/java/de/butzlabben/world/listener/BlockListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/listener/BlockListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/listener/BlockListener.java diff --git a/WorldSystem/src/de/butzlabben/world/listener/CommandListener.java b/WorldSystem/src/main/java/de/butzlabben/world/listener/CommandListener.java similarity index 96% rename from WorldSystem/src/de/butzlabben/world/listener/CommandListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/listener/CommandListener.java index 2806ae1..4cdcb35 100644 --- a/WorldSystem/src/de/butzlabben/world/listener/CommandListener.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/listener/CommandListener.java @@ -9,6 +9,7 @@ import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerCommandPreprocessEvent; import org.bukkit.event.player.PlayerTeleportEvent; import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; + import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; diff --git a/WorldSystem/src/de/butzlabben/world/listener/PlayerDeathListener.java b/WorldSystem/src/main/java/de/butzlabben/world/listener/PlayerDeathListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/listener/PlayerDeathListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/listener/PlayerDeathListener.java diff --git a/WorldSystem/src/de/butzlabben/world/listener/PlayerListener.java b/WorldSystem/src/main/java/de/butzlabben/world/listener/PlayerListener.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/listener/PlayerListener.java rename to WorldSystem/src/main/java/de/butzlabben/world/listener/PlayerListener.java diff --git a/WorldSystem/src/de/butzlabben/world/wrapper/AsyncCreatorAdapter.java b/WorldSystem/src/main/java/de/butzlabben/world/wrapper/AsyncCreatorAdapter.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/wrapper/AsyncCreatorAdapter.java rename to WorldSystem/src/main/java/de/butzlabben/world/wrapper/AsyncCreatorAdapter.java diff --git a/WorldSystem/src/de/butzlabben/world/wrapper/CreatorAdapter.java b/WorldSystem/src/main/java/de/butzlabben/world/wrapper/CreatorAdapter.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/wrapper/CreatorAdapter.java rename to WorldSystem/src/main/java/de/butzlabben/world/wrapper/CreatorAdapter.java diff --git a/WorldSystem/src/de/butzlabben/world/wrapper/SystemWorld.java b/WorldSystem/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java similarity index 95% rename from WorldSystem/src/de/butzlabben/world/wrapper/SystemWorld.java rename to WorldSystem/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java index 0494483..729ce9c 100644 --- a/WorldSystem/src/de/butzlabben/world/wrapper/SystemWorld.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java @@ -14,14 +14,14 @@ import org.bukkit.WorldCreator; import org.bukkit.entity.Player; import com.google.common.base.Preconditions; -import de.butzlabben.event.WorldCreateEvent; -import de.butzlabben.event.WorldLoadEvent; -import de.butzlabben.event.WorldUnloadEvent; import de.butzlabben.world.WorldSystem; import de.butzlabben.world.config.DependenceConfig; import de.butzlabben.world.config.MessageConfig; import de.butzlabben.world.config.PluginConfig; import de.butzlabben.world.config.WorldConfig; +import de.butzlabben.world.event.WorldCreateEvent; +import de.butzlabben.world.event.WorldLoadEvent; +import de.butzlabben.world.event.WorldUnloadEvent; /** * This class represents a systemworld, loaded or not diff --git a/WorldSystem/src/de/butzlabben/world/wrapper/WorldPlayer.java b/WorldSystem/src/main/java/de/butzlabben/world/wrapper/WorldPlayer.java similarity index 100% rename from WorldSystem/src/de/butzlabben/world/wrapper/WorldPlayer.java rename to WorldSystem/src/main/java/de/butzlabben/world/wrapper/WorldPlayer.java diff --git a/WorldSystem/src/org/bstats/bukkit/Metrics.java b/WorldSystem/src/main/java/org/bstats/bukkit/Metrics.java similarity index 100% rename from WorldSystem/src/org/bstats/bukkit/Metrics.java rename to WorldSystem/src/main/java/org/bstats/bukkit/Metrics.java diff --git a/WorldSystem/src/1_13_gui.yml b/WorldSystem/src/main/resources/1_13_gui.yml similarity index 100% rename from WorldSystem/src/1_13_gui.yml rename to WorldSystem/src/main/resources/1_13_gui.yml diff --git a/WorldSystem/src/config.yml b/WorldSystem/src/main/resources/config.yml similarity index 100% rename from WorldSystem/src/config.yml rename to WorldSystem/src/main/resources/config.yml diff --git a/WorldSystem/src/custom.yml b/WorldSystem/src/main/resources/custom.yml similarity index 100% rename from WorldSystem/src/custom.yml rename to WorldSystem/src/main/resources/custom.yml diff --git a/WorldSystem/src/de.yml b/WorldSystem/src/main/resources/de.yml similarity index 100% rename from WorldSystem/src/de.yml rename to WorldSystem/src/main/resources/de.yml diff --git a/WorldSystem/src/en.yml b/WorldSystem/src/main/resources/en.yml similarity index 100% rename from WorldSystem/src/en.yml rename to WorldSystem/src/main/resources/en.yml diff --git a/WorldSystem/src/es.yml b/WorldSystem/src/main/resources/es.yml similarity index 100% rename from WorldSystem/src/es.yml rename to WorldSystem/src/main/resources/es.yml diff --git a/WorldSystem/src/fi.yml b/WorldSystem/src/main/resources/fi.yml similarity index 100% rename from WorldSystem/src/fi.yml rename to WorldSystem/src/main/resources/fi.yml diff --git a/WorldSystem/src/fr.yml b/WorldSystem/src/main/resources/fr.yml similarity index 100% rename from WorldSystem/src/fr.yml rename to WorldSystem/src/main/resources/fr.yml diff --git a/WorldSystem/src/hu.yml b/WorldSystem/src/main/resources/hu.yml similarity index 100% rename from WorldSystem/src/hu.yml rename to WorldSystem/src/main/resources/hu.yml diff --git a/WorldSystem/src/nl.yml b/WorldSystem/src/main/resources/nl.yml similarity index 100% rename from WorldSystem/src/nl.yml rename to WorldSystem/src/main/resources/nl.yml diff --git a/WorldSystem/src/old_gui.yml b/WorldSystem/src/main/resources/old_gui.yml similarity index 100% rename from WorldSystem/src/old_gui.yml rename to WorldSystem/src/main/resources/old_gui.yml diff --git a/WorldSystem/src/pl.yml b/WorldSystem/src/main/resources/pl.yml similarity index 100% rename from WorldSystem/src/pl.yml rename to WorldSystem/src/main/resources/pl.yml diff --git a/WorldSystem/src/plugin.yml b/WorldSystem/src/main/resources/plugin.yml similarity index 94% rename from WorldSystem/src/plugin.yml rename to WorldSystem/src/main/resources/plugin.yml index 38d81ab..98aceb3 100644 --- a/WorldSystem/src/plugin.yml +++ b/WorldSystem/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: WorldSystem -version: 2.3.1.4 +version: ${project.version} author: Butzlabben main: de.butzlabben.world.WorldSystem diff --git a/WorldSystem/src/ru.yml b/WorldSystem/src/main/resources/ru.yml similarity index 100% rename from WorldSystem/src/ru.yml rename to WorldSystem/src/main/resources/ru.yml diff --git a/WorldSystem/src/settings.yml b/WorldSystem/src/main/resources/settings.yml similarity index 100% rename from WorldSystem/src/settings.yml rename to WorldSystem/src/main/resources/settings.yml diff --git a/WorldSystem/src/zh.yml b/WorldSystem/src/main/resources/zh.yml similarity index 100% rename from WorldSystem/src/zh.yml rename to WorldSystem/src/main/resources/zh.yml diff --git a/WorldSystem/src/test/java/de/butzlabben/autoupdater/test/UpdateInformationsTest.java b/WorldSystem/src/test/java/de/butzlabben/autoupdater/test/UpdateInformationsTest.java new file mode 100644 index 0000000..9f50627 --- /dev/null +++ b/WorldSystem/src/test/java/de/butzlabben/autoupdater/test/UpdateInformationsTest.java @@ -0,0 +1,21 @@ +package de.butzlabben.autoupdater.test; + +import static org.junit.Assert.assertNotNull; + +import org.junit.Test; + +import de.butzlabben.autoupdater.UpdateInformations; + +/** + * @author Butzlabben + * @since 03.09.2018 + */ +public class UpdateInformationsTest { + + private final String url = "https://seagiants.eu/worldsystem/info.php?version=1.0"; + + @Test + public void testCallURL() { + assertNotNull("Failed to call URL to AutoUpdate Server", UpdateInformations.callURL(url)); + } +}