mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-10-03 10:07:34 +02:00
Merge branch 'master' of github.com:Multiverse/Multiverse-Core
This commit is contained in:
commit
e0f9344d20
@ -64,6 +64,13 @@ public interface MVWorldManager {
|
|||||||
*/
|
*/
|
||||||
public boolean loadWorld(String name);
|
public boolean loadWorld(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes all players from the specified world.
|
||||||
|
*
|
||||||
|
* @param name World to remove players from.
|
||||||
|
*/
|
||||||
|
public void removePlayersFromWorld(String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test if a given chunk generator is valid.
|
* Test if a given chunk generator is valid.
|
||||||
*
|
*
|
||||||
|
@ -254,12 +254,7 @@ public class WorldManager implements MVWorldManager {
|
|||||||
return this.plugin.getServer().unloadWorld(name, safely);
|
return this.plugin.getServer().unloadWorld(name, safely);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public void removePlayersFromWorld(String name) {
|
||||||
* Removes all players from the specified world.
|
|
||||||
*
|
|
||||||
* @param name World to remove players from.
|
|
||||||
*/
|
|
||||||
private void removePlayersFromWorld(String name) {
|
|
||||||
World w = this.plugin.getServer().getWorld(name);
|
World w = this.plugin.getServer().getWorld(name);
|
||||||
if (w != null) {
|
if (w != null) {
|
||||||
World safeWorld = this.plugin.getServer().getWorlds().get(0);
|
World safeWorld = this.plugin.getServer().getWorlds().get(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user