small fixes

This commit is contained in:
Paul Schulze 2013-03-19 12:02:01 +01:00
parent 9b17060d32
commit 3c229acf31
2 changed files with 7 additions and 5 deletions

View File

@ -30,6 +30,7 @@ public class Messages
private static String makeCmd( Player player, String command, String explanation, String[] permissions,
String... args )
{
if (permissions != null) {
for ( String perm : permissions )
{
if ( !player.hasPermission(perm) )
@ -37,6 +38,7 @@ public class Messages
return "";
}
}
}
StringBuilder sb = new StringBuilder();

View File

@ -66,7 +66,7 @@ public class Replicator implements ConfigurationSerializable
/**
* List of all replicators accessible by center location.
*/
private static HashMap<Location, Replicator> allReplicators;
private static HashMap<Location, Replicator> allReplicators = new HashMap<Location, Replicator>();
private static File replicatorsFile = new File(Plugin.instance.getDataFolder(), dataFileName);
private static FileConfiguration replicatorsFileConf = YamlConfiguration.loadConfiguration(replicatorsFile);