Use player session to allow undo.

This commit is contained in:
Jesse Boyd 2017-03-06 04:41:26 +11:00
parent 150a5b16db
commit 61892c50dc
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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) {