本文整理了Java中org.bukkit.Server.unloadWorld()
方法的一些代码示例,展示了Server.unloadWorld()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.unloadWorld()
方法的具体详情如下:
包路径:org.bukkit.Server
类名称:Server
方法名:unloadWorld
[英]Unloads a world with the given name.
[中]卸载具有给定名称的世界。
代码示例来源:origin: Bukkit/Bukkit
/**
* @see Server#unloadWorld(String name, boolean save)
*/
public static boolean unloadWorld(String name, boolean save) {
return server.unloadWorld(name, save);
}
代码示例来源:origin: Bukkit/Bukkit
/**
* @see Server#unloadWorld(World world, boolean save)
*/
public static boolean unloadWorld(World world, boolean save) {
return server.unloadWorld(world, save);
}
代码示例来源:origin: GlowstoneMC/Glowstone
private void handleWorldException(String file, IOException e) {
server.unloadWorld(world, false);
ConsoleMessages.Error.Io.WORLD_READ.log(e, file, world.getName());
}
代码示例来源:origin: SpigotMC/Spigot-API
/**
* @see Server#unloadWorld(String name, boolean save)
*/
public static boolean unloadWorld(String name, boolean save) {
return server.unloadWorld(name, save);
}
代码示例来源:origin: SpigotMC/Spigot-API
/**
* @see Server#unloadWorld(World world, boolean save)
*/
public static boolean unloadWorld(World world, boolean save) {
return server.unloadWorld(world, save);
}
代码示例来源:origin: EngineHub/CommandHelper
@Override
public boolean unloadWorld(MCWorld world, boolean save) {
return s.unloadWorld(((BukkitMCWorld) world).__World(), save);
}
代码示例来源:origin: Multiverse/Multiverse-Core
/**
* Unload a world from Bukkit.
*
* @param name Name of the world to unload
* @param safely Perform this safely. Set to True to save world files before unloading.
* @return True if the world was unloaded, false if not.
*/
private boolean unloadWorldFromBukkit(String name, boolean safely) {
this.removePlayersFromWorld(name);
return this.plugin.getServer().unloadWorld(name, safely);
}
代码示例来源:origin: eccentricdevotion/TARDIS
plugin.getServer().unloadWorld(cw, true);
File world_folder = new File(plugin.getServer().getWorldContainer() + File.separator + name + File.separator);
if (!deleteFolder(world_folder)) {
代码示例来源:origin: eccentricdevotion/TARDIS
plugin.getServer().unloadWorld(w, true);
File world_folder = new File(plugin.getServer().getWorldContainer() + File.separator + name + File.separator);
if (!deleteFolder(world_folder)) {
内容来源于网络,如有侵权,请联系作者删除!