diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..fac36ad --- /dev/null +++ b/pom.xml @@ -0,0 +1,76 @@ + + + 4.0.0 + + com.envisionred.smartexp + SmartExp + 0.0.1-SNAPSHOT + SmartExp + Plugin to choose how much experience mobs give on death + + + UTF-8 + + + + + bukkit-repo + http://repo.bukkit.org/content/groups/public/ + + + + + + org.bukkit + bukkit + + 1.2.5-R4.0 + jar + provided + + + + com.google.guava + guava + 10.0.1 + jar + provided + + + + junit + junit + 4.10 + jar + test + + + + + + + + ${basedir}/src/main/resources + true + + **/*.yml + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.3.2 + + + 1.6 + 1.6 + + + + + \ No newline at end of file diff --git a/src/MetricsDependencies/Metrics.java b/src/main/java/MetricsDependencies/Metrics.java similarity index 100% rename from src/MetricsDependencies/Metrics.java rename to src/main/java/MetricsDependencies/Metrics.java diff --git a/src/com/envisionred/smartexp/BlockListener.java b/src/main/java/com/envisionred/smartexp/BlockListener.java similarity index 100% rename from src/com/envisionred/smartexp/BlockListener.java rename to src/main/java/com/envisionred/smartexp/BlockListener.java diff --git a/src/com/envisionred/smartexp/EntityListner.java b/src/main/java/com/envisionred/smartexp/EntityListner.java similarity index 100% rename from src/com/envisionred/smartexp/EntityListner.java rename to src/main/java/com/envisionred/smartexp/EntityListner.java diff --git a/src/com/envisionred/smartexp/SmartExp.java b/src/main/java/com/envisionred/smartexp/SmartExp.java similarity index 92% rename from src/com/envisionred/smartexp/SmartExp.java rename to src/main/java/com/envisionred/smartexp/SmartExp.java index d514b71..2a58539 100644 --- a/src/com/envisionred/smartexp/SmartExp.java +++ b/src/main/java/com/envisionred/smartexp/SmartExp.java @@ -25,8 +25,8 @@ public class SmartExp extends JavaPlugin { @Override public void onEnable() { replaceOutdatedConfig(); - if (!(new File(getDataFolder(), "Blocks.yml").exists())) { - saveResource("Blocks.yml", false); + if (!(new File(getDataFolder(), "blocks.yml").exists())) { + saveResource("blocks.yml", false); } // StartMetrics(); getServer().getPluginManager().registerEvents(new EntityListner(this), this); @@ -71,10 +71,10 @@ private void StartMetrics() { public void reloadBlocksConfig() { if (blocksFile == null) { - blocksFile = new File(this.getDataFolder(), "Blocks.yml"); + blocksFile = new File(this.getDataFolder(), "blocks.yml"); } blockConfig = YamlConfiguration.loadConfiguration(blocksFile); - InputStream blocksConfigStream = this.getResource("Blocks.yml"); + InputStream blocksConfigStream = this.getResource("blocks.yml"); if (blocksConfigStream != null) { YamlConfiguration blocksDefault = YamlConfiguration.loadConfiguration(blocksConfigStream); blockConfig.setDefaults(blocksDefault); diff --git a/src/com/envisionred/smartexp/commands/CheckCommand.java b/src/main/java/com/envisionred/smartexp/commands/CheckCommand.java similarity index 100% rename from src/com/envisionred/smartexp/commands/CheckCommand.java rename to src/main/java/com/envisionred/smartexp/commands/CheckCommand.java diff --git a/src/com/envisionred/smartexp/commands/ExpCommand.java b/src/main/java/com/envisionred/smartexp/commands/ExpCommand.java similarity index 100% rename from src/com/envisionred/smartexp/commands/ExpCommand.java rename to src/main/java/com/envisionred/smartexp/commands/ExpCommand.java diff --git a/src/com/envisionred/smartexp/commands/HelpCommand.java b/src/main/java/com/envisionred/smartexp/commands/HelpCommand.java similarity index 100% rename from src/com/envisionred/smartexp/commands/HelpCommand.java rename to src/main/java/com/envisionred/smartexp/commands/HelpCommand.java diff --git a/src/com/envisionred/smartexp/commands/ReloadCommand.java b/src/main/java/com/envisionred/smartexp/commands/ReloadCommand.java similarity index 100% rename from src/com/envisionred/smartexp/commands/ReloadCommand.java rename to src/main/java/com/envisionred/smartexp/commands/ReloadCommand.java diff --git a/src/Blocks.yml b/src/main/resources/blocks.yml similarity index 100% rename from src/Blocks.yml rename to src/main/resources/blocks.yml diff --git a/src/config.yml b/src/main/resources/config.yml similarity index 100% rename from src/config.yml rename to src/main/resources/config.yml diff --git a/src/plugin.yml b/src/main/resources/plugin.yml similarity index 100% rename from src/plugin.yml rename to src/main/resources/plugin.yml