@Override public EditSession getEditSession(World world, int maxBlocks, BlockBag blockBag, Player player) { if (WorldEdit.getInstance().getConfiguration().traceUnflushedSessions) { return new TracedEditSession(eventBus, world, maxBlocks, blockBag, new EditSessionEvent(world, player, maxBlocks, null)); } return new EditSession(eventBus, world, maxBlocks, blockBag, new EditSessionEvent(world, player, maxBlocks, null)); }
private EditSession getEditSession(CityWorldGenerator generator) { return new EditSession(new BukkitWorld(generator.getWorld()), blockCount); }