small fixes
This commit is contained in:
parent
9b17060d32
commit
3c229acf31
@ -30,11 +30,13 @@ public class Messages
|
||||
private static String makeCmd( Player player, String command, String explanation, String[] permissions,
|
||||
String... args )
|
||||
{
|
||||
for ( String perm : permissions )
|
||||
{
|
||||
if ( !player.hasPermission(perm) )
|
||||
if (permissions != null) {
|
||||
for ( String perm : permissions )
|
||||
{
|
||||
return "";
|
||||
if ( !player.hasPermission(perm) )
|
||||
{
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user