Fix the plugin not loading due to language changes

This commit is contained in:
graywolf336 2016-03-21 17:29:13 -05:00
parent d0fcfe7c9b
commit 7324c8597e
2 changed files with 15 additions and 0 deletions

12
pom.xml
View File

@ -67,6 +67,8 @@
<groupId>com.sk89q.worldedit</groupId> <groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId> <artifactId>worldedit-bukkit</artifactId>
<version>6.1</version> <version>6.1</version>
<scope>provided</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
@ -74,6 +76,8 @@
<artifactId>Vault</artifactId> <artifactId>Vault</artifactId>
<version>1.5.6</version> <version>1.5.6</version>
<type>jar</type> <type>jar</type>
<scope>provided</scope>
<optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
@ -170,6 +174,14 @@
<include>*.yml</include> <include>*.yml</include>
</includes> </includes>
</resource> </resource>
<resource>
<targetPath>/locales</targetPath>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources/locales/</directory>
<includes>
<include>*.yml</include>
</includes>
</resource>
</resources> </resources>
<testResources> <testResources>

View File

@ -65,6 +65,7 @@ public class TestInstanceCreator {
public static final File serverDirectory = new File("bin" + File.separator + "test" + File.separator + "server"); public static final File serverDirectory = new File("bin" + File.separator + "test" + File.separator + "server");
public static final File worldsDirectory = new File("bin" + File.separator + "test" + File.separator + "server"); public static final File worldsDirectory = new File("bin" + File.separator + "test" + File.separator + "server");
public static final File pluginDirectory = new File(serverDirectory + File.separator + "plugins" + File.separator + "JailTest"); public static final File pluginDirectory = new File(serverDirectory + File.separator + "plugins" + File.separator + "JailTest");
public static final File localeDirectory = new File(serverDirectory + File.separator + "plugins" + File.separator + "JailTest" + File.separator + "locales");
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public boolean setup() { public boolean setup() {
@ -73,6 +74,8 @@ public class TestInstanceCreator {
try { try {
pluginDirectory.mkdirs(); pluginDirectory.mkdirs();
Assert.assertTrue(pluginDirectory.exists()); Assert.assertTrue(pluginDirectory.exists());
localeDirectory.mkdirs();
Assert.assertTrue(localeDirectory.exists());
MockGateway.MOCK_STANDARD_METHODS = false; MockGateway.MOCK_STANDARD_METHODS = false;