Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Converted project to Maven
Browse files Browse the repository at this point in the history
  • Loading branch information
SagaciousZed committed Jul 9, 2012
1 parent 2dd83c7 commit 2dccb9c
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 4 deletions.
76 changes: 76 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.envisionred.smartexp</groupId>
<artifactId>SmartExp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>SmartExp</name>
<description>Plugin to choose how much experience mobs give on death</description>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>bukkit-repo</id>
<url>http://repo.bukkit.org/content/groups/public/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<!-- Bukkit API Version, change if out dated -->
<version>1.2.5-R4.0</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<!-- Following dependency is provided by CraftBukkit -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>10.0.1</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<!-- Testing only, remove if not needed -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<!-- Filter *.yml files -->
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.yml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<!-- Minimum Minecraft requirement -->
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2dccb9c

Please sign in to comment.