If enforceaccess == false, show all players all worlds (unless they're hidden)

This commit is contained in:
Eric Stokes 2011-10-16 00:34:40 -06:00
parent 01bed7cc4b
commit 54e7bc454a

View File

@ -40,7 +40,7 @@ public class ListCommand extends MultiverseCommand {
String output = ChatColor.LIGHT_PURPLE + "Worlds which you can view:\n";
for (MultiverseWorld world : this.plugin.getMVWorldManager().getMVWorlds()) {
if (p != null && (!this.plugin.getMVPerms().canEnterWorld(p, world))) {
if (MultiverseCore.EnforceAccess && p != null && (!this.plugin.getMVPerms().canEnterWorld(p, world))) {
continue;
}