Update for cleanup in Bukkit

This commit is contained in:
Erik Broes 2011-12-25 15:35:12 +01:00
parent 81c751a8a3
commit 834c420257
2 changed files with 31 additions and 29 deletions

View File

@ -203,6 +203,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<configuration> <configuration>
<workingDirectory>${basedir}/target/test-server</workingDirectory> <workingDirectory>${basedir}/target/test-server</workingDirectory>
</configuration> </configuration>

View File

@ -712,6 +712,7 @@ public final class CraftServer implements Server {
return true; return true;
} }
@SuppressWarnings("unchecked")
public Map<String, String[]> getCommandAliases() { public Map<String, String[]> getCommandAliases() {
ConfigurationSection section = configuration.getConfigurationSection("aliases"); ConfigurationSection section = configuration.getConfigurationSection("aliases");
Map<String, String[]> result = new LinkedHashMap<String, String[]>(); Map<String, String[]> result = new LinkedHashMap<String, String[]>();