mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Leave a note about (temporary) not undoable tree tools
This commit is contained in:
parent
77e44c80c2
commit
69067fe8c8
@ -50,6 +50,7 @@ import com.sk89q.worldedit.regions.CuboidRegion;
|
|||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import com.sk89q.worldedit.util.TreeGenerator.TreeType;
|
import com.sk89q.worldedit.util.TreeGenerator.TreeType;
|
||||||
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
||||||
|
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
||||||
import com.sk89q.worldedit.world.biome.BiomeType;
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
||||||
import com.sk89q.worldedit.world.block.BlockType;
|
import com.sk89q.worldedit.world.block.BlockType;
|
||||||
import org.enginehub.piston.annotation.Command;
|
import org.enginehub.piston.annotation.Command;
|
||||||
@ -240,6 +241,9 @@ public class GenerationCommands {
|
|||||||
@Arg(desc = "The density of the forest, between 0 and 100", def = "5")
|
@Arg(desc = "The density of the forest, between 0 and 100", def = "5")
|
||||||
double density
|
double density
|
||||||
) throws WorldEditException {
|
) throws WorldEditException {
|
||||||
|
//FAWE start
|
||||||
|
actor.print(TextComponent.of("Warning: This brush is currently not undo-able due to a Spigot bug!").color(TextColor.RED));
|
||||||
|
//FAWE end
|
||||||
checkCommandArgument(0 <= density && density <= 100, "Density must be between 0 and 100");
|
checkCommandArgument(0 <= density && density <= 100, "Density must be between 0 and 100");
|
||||||
worldEdit.checkMaxRadius(size);
|
worldEdit.checkMaxRadius(size);
|
||||||
density /= 100;
|
density /= 100;
|
||||||
|
@ -242,6 +242,9 @@ public class ToolCommands {
|
|||||||
TreeGenerator.TreeType type
|
TreeGenerator.TreeType type
|
||||||
) throws WorldEditException {
|
) throws WorldEditException {
|
||||||
setTool(player, session, new TreePlanter(type), "worldedit.tool.tree.equip");
|
setTool(player, session, new TreePlanter(type), "worldedit.tool.tree.equip");
|
||||||
|
//FAWE start
|
||||||
|
player.print(TextComponent.of("Warning: This brush is currently not undo-able due to a Spigot bug!").color(TextColor.RED));
|
||||||
|
//FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
|
Loading…
Reference in New Issue
Block a user