Examples of BukkitWorld


Examples of com.khorn.terraincontrol.bukkit.BukkitWorld

    }

    @Override
    public boolean onCommand(CommandSender sender, List<String> args)
    {
        BukkitWorld world = (BukkitWorld) this.getWorld(sender, args.size() > 0 ? args.get(0) : "");
        if (world == null)
        {
            sender.sendMessage(ERROR_COLOR + "World not found. Either you are not in a world with Terrain Control, or you are the console.");
            return false;
        }

        world.reloadSettings();

        sender.sendMessage(MESSAGE_COLOR + "Configs for world '" + world.getName() + "' reloaded");
        if (sender instanceof Player)
        {
            TerrainControl.log(LogMarker.INFO, "{} reloaded the config files for world '{}'.", new Object[]
            {
                sender.getName(), world.getName()
            });
        }
        return true;
    }
View Full Code Here

Examples of com.khorn.terraincontrol.bukkit.BukkitWorld

            return true;
        }

        String worldName = args.get(0);
        File settingsFolder = plugin.getWorldSettingsFolder(worldName);
        new WorldSettings(settingsFolder, new BukkitWorld(worldName), true);

        sender.sendMessage(MESSAGE_COLOR + "Done!");
        return true;
    }
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.BukkitWorld

    public static LocalWorld getLocalWorld(World w) {

        LocalWorld lw = wlw.get(w.getName());
        if (lw == null) {
            lw = new BukkitWorld(w);
            wlw.put(w.getName(), lw);
        }
        return lw;
    }
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.BukkitWorld

    @Override
    public void paste() {

        try {
            EditSession editSession = new EditSession(new BukkitWorld(world), -1);
            editSession.enableQueue();
            clipboard.place(editSession, origin, false);
            editSession.flushQueue();
        } catch (MaxChangedBlocksException e) {
            // is never thrown because we are on infinite mode
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.BukkitWorld

    public void clear() {

        try {
            CuboidRegion region = new CuboidRegion(origin, origin.add(size.getX() - 1, size.getY() - 1,
                    size.getZ() - 1));
            EditSession editSession = new EditSession(new BukkitWorld(world), -1);
            editSession.enableQueue();
            editSession.setBlocks(region, new BaseBlock(0));
            editSession.flushQueue();
        } catch (MaxChangedBlocksException e) {
            // is never thrown
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.BukkitWorld

    }

    @Override
    public void copy() {

        EditSession editSession = new EditSession(new BukkitWorld(world), -1);
        editSession.enableQueue();
        // -1 means no block limit
        clipboard.copy(editSession);
        editSession.flushQueue();
    }
View Full Code Here

Examples of com.sk89q.worldedit.bukkit.BukkitWorld

            for (int z = 0; z < sizeZ; z++)
              blocks[facing][x][y][z] = cuboid.getBlock(new Vector(x, y, z));
  }
 
  private EditSession getEditSession(WorldGenerator generator) {
    return new EditSession(new BukkitWorld(generator.getWorld()), blockCount);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.