Class WorldGroup
java.lang.Object
org.mvplugins.multiverse.inventories.profile.group.WorldGroup
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a world to this world group and updates it in the Config.void
Adds a world to this world group and optionally updates it in the Config.void
addWorld
(org.bukkit.World world) Convenience method to add aWorld
to this World Group.void
addWorlds
(Collection<String> worlds) Convenience method to add multiple worlds to this World Group and updates it in the Config.void
addWorlds
(Collection<String> worlds, boolean updateConfig) Convenience method to add multiple worlds to this World Group.boolean
containsWorld
(String worldName) Returns the profile container for this group.getName()
Get the name of this World Group.Retrieves the shares for this World Group.org.bukkit.event.EventPriority
Retrieves all of the worlds in this World Group.boolean
Is this a default group.boolean
Checks if this group is sharing sharable.void
void
Remove all the worlds in this World Group.void
removeAllWorlds
(boolean updateConfig) Remove all the worlds in this World Group.void
removeWorld
(String worldName) Removes a world from this world group and updates the group in the Config.void
removeWorld
(String worldName, boolean updateConfig) Removes a world from this world group and optionally updates it in the Config.void
removeWorld
(org.bukkit.World world) Convenience method to remove aWorld
from this World Group.boolean
removeWorlds
(Collection<String> removeWorlds) Removes multiple worlds from this World Group.void
setSpawnPriority
(org.bukkit.event.EventPriority priority) void
setSpawnWorld
(String worldName) toString()
-
Method Details
-
getName
Get the name of this World Group.- Returns:
- Name of this World Group.
-
addWorld
Adds a world to this world group and updates it in the Config.- Parameters:
worldName
- The name of the world to add.
-
addWorld
Adds a world to this world group and optionally updates it in the Config.- Parameters:
worldName
- The name of the world to add.updateConfig
- True to update this group in the config.
-
addWorld
public void addWorld(org.bukkit.World world) Convenience method to add aWorld
to this World Group.- Parameters:
world
- The world to add.
-
addWorlds
Convenience method to add multiple worlds to this World Group and updates it in the Config.- Parameters:
worlds
- A collections of worlds to add.
-
addWorlds
Convenience method to add multiple worlds to this World Group.- Parameters:
worlds
- A collections of worlds to add.updateConfig
- True to update this group in the config.
-
removeWorld
Removes a world from this world group and updates the group in the Config.- Parameters:
worldName
- The name of the world to remove.
-
removeWorld
Removes a world from this world group and optionally updates it in the Config.- Parameters:
worldName
- The name of the world to remove.updateConfig
- True to update this group in the config.
-
removeWorld
public void removeWorld(org.bukkit.World world) Convenience method to remove aWorld
from this World Group.- Parameters:
world
- The world to remove.
-
removeWorlds
Removes multiple worlds from this World Group.- Parameters:
removeWorlds
- A collection of world names to remove.- Returns:
- True if any of the worlds were removed.
-
removeAllWorlds
public void removeAllWorlds()Remove all the worlds in this World Group. -
removeAllWorlds
public void removeAllWorlds(boolean updateConfig) Remove all the worlds in this World Group.- Parameters:
updateConfig
- True to update this group in the config.
-
getWorlds
Retrieves all of the worlds in this World Group.- Returns:
- The worlds of this World Group.
-
containsWorld
- Parameters:
worldName
- Name of world to check for.- Returns:
- True if specified world is part of this group.
-
getSpawnWorld
- Returns:
- The name of the world that will be used as the spawn for this group. Or null if no world was specified as the group spawn world.
-
setSpawnWorld
- Parameters:
worldName
- The name of the world to set this groups spawn to.
-
getSpawnPriority
public org.bukkit.event.EventPriority getSpawnPriority()- Returns:
- The priority for the respawn event that this spawn will act on.
-
setSpawnPriority
public void setSpawnPriority(org.bukkit.event.EventPriority priority) - Parameters:
priority
- The priority that will be used for respawning the player at this group's spawn location if there is one set.
-
isDefault
public boolean isDefault()Is this a default group.- Returns:
- true if this is the default group.
-
getGroupProfileContainer
Returns the profile container for this group.- Returns:
- the profile container for this group.
-
toString
-