Add new api items for hiding worlds, Move the severe perms error to a level 2 log

This commit is contained in:
Eric Stokes 2011-10-09 08:51:29 -06:00
parent 5e0903086e
commit 5386aadbb7
2 changed files with 16 additions and 1 deletions

View File

@ -117,7 +117,7 @@ public class MVWorld implements MultiverseWorld {
this.plugin.getServer().getPluginManager().addPermission(this.exempt);
addToUpperLists(this.permission);
} catch (IllegalArgumentException e) {
this.plugin.log(Level.SEVERE, "Error when adding Exemption/Access permissions for " + this.name);
this.plugin.log(Level.FINER, "Permissions nodes were already added for " + this.name);
}
}

View File

@ -143,4 +143,19 @@ public interface MultiverseWorld {
* @param pvpMode True to enable PVP damage, false to disable it.
*/
public void setPVPMode(boolean pvpMode);
/**
* Gets whether or not this world will display in chat, mvw and mvl regardless if a user has the
* access permissions to go to this world.
*
* @return True if the world will be hidden, false if not.
*/
public boolean isWorldHidden();
/**
* Sets whether or not this world will display in chat, mvw and mvl regardless if a user has the
* access permissions to go to this world.
* @param hidden Set
*/
public void setHidden(boolean hidden);
}