Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void makeWorlds() {
- World uhc;
- if (Bukkit.getWorld("uhc") != null) {
- uhc = Bukkit.getServer().createWorld(new WorldCreator("uhc"));
- } else {
- uhc = Bukkit.createWorld(new WorldCreator("uhc").environment(World.Environment.NORMAL).type(WorldType.NORMAL).generator("TerrainControl"));
- }
- uhc.setGameRuleValue("doDaylightCycle", "false");
- uhc.setTime(0);
- uhc.setGameRuleValue("naturalRegeneration", "false");
- World uhcNether;
- if (Bukkit.getWorld("uhc_nether") == null) {
- uhcNether = Bukkit.createWorld(new WorldCreator("uhc_nether").environment(World.Environment.NETHER).type(WorldType.NORMAL));
- } else {
- uhcNether = Bukkit.getServer().createWorld(new WorldCreator("map"));
- }
- uhcNether.setGameRuleValue("doDaylightCycle", "false");
- uhcNether.setTime(0);
- uhcNether.setGameRuleValue("naturalRegeneration", "false");
- //spawn world
- World w = Bukkit.getWorld("world");
- w.setGameRuleValue("doDaylightCycle", "false");
- w.setGameRuleValue("doMobSpawning", "false");
- w.setGameRuleValue("doFireTick", "false");
- w.setGameRuleValue("naturalRegeneration", "false");
- w.setTime(13000);
- w.setDifficulty(Difficulty.PEACEFUL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement