mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-03-02 11:21:20 +01:00
Use player session to allow undo.
This commit is contained in:
parent
150a5b16db
commit
61892c50dc
@ -1,6 +1,7 @@
|
||||
package com.boydti.fawe.regions.general.plot;
|
||||
|
||||
import com.boydti.fawe.FaweAPI;
|
||||
import com.boydti.fawe.object.FawePlayer;
|
||||
import com.boydti.fawe.object.PseudoRandom;
|
||||
import com.boydti.fawe.util.EditSessionBuilder;
|
||||
import com.boydti.fawe.util.TaskManager;
|
||||
@ -17,6 +18,7 @@ import com.intellectualcrafters.plot.util.MainUtil;
|
||||
import com.intellectualcrafters.plot.util.Permissions;
|
||||
import com.intellectualcrafters.plot.util.StringMan;
|
||||
import com.intellectualcrafters.plot.util.WorldUtil;
|
||||
import com.plotsquared.bukkit.object.BukkitPlayer;
|
||||
import com.plotsquared.general.commands.Command;
|
||||
import com.plotsquared.general.commands.CommandDeclaration;
|
||||
import com.sk89q.worldedit.EditSession;
|
||||
@ -76,9 +78,8 @@ public class PlotSetBiome extends Command {
|
||||
.autoQueue(false)
|
||||
.checkMemory(false)
|
||||
.allowedRegionsEverywhere()
|
||||
.changeSetNull()
|
||||
.player(FawePlayer.wrap(((BukkitPlayer) player).player))
|
||||
.limitUnlimited()
|
||||
.fastmode(true)
|
||||
.build();
|
||||
long seed = PseudoRandom.random.nextLong();
|
||||
for (RegionWrapper region : regions) {
|
||||
|
Loading…
Reference in New Issue
Block a user