mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-07 03:11:02 +01:00
Add new api items for hiding worlds, Move the severe perms error to a level 2 log
This commit is contained in:
parent
5e0903086e
commit
5386aadbb7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user