Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Replace //set with new command version.
Dieser Commit ist enthalten in:
Ursprung
86c6de7105
Commit
0e200df5be
@ -77,20 +77,6 @@ public class RegionCommands {
|
|||||||
this.worldEdit = worldEdit;
|
this.worldEdit = worldEdit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
|
||||||
aliases = { "/set" },
|
|
||||||
usage = "<block>",
|
|
||||||
desc = "Set all the blocks inside the selection to a block",
|
|
||||||
min = 1,
|
|
||||||
max = 1
|
|
||||||
)
|
|
||||||
@CommandPermissions("worldedit.region.set")
|
|
||||||
@Logging(REGION)
|
|
||||||
public void set(Player player, LocalSession session, EditSession editSession, Pattern pattern) throws WorldEditException {
|
|
||||||
int affected = editSession.setBlocks(session.getSelection(player.getWorld()), Patterns.wrap(pattern));
|
|
||||||
player.print(affected + " block(s) have been changed.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = { "/line" },
|
aliases = { "/line" },
|
||||||
usage = "<block> [thickness]",
|
usage = "<block> [thickness]",
|
||||||
|
@ -52,6 +52,7 @@ import com.sk89q.worldedit.command.argument.TreeGeneratorParser;
|
|||||||
import com.sk89q.worldedit.command.composition.ApplyCommand;
|
import com.sk89q.worldedit.command.composition.ApplyCommand;
|
||||||
import com.sk89q.worldedit.command.composition.DeformCommand;
|
import com.sk89q.worldedit.command.composition.DeformCommand;
|
||||||
import com.sk89q.worldedit.command.composition.PaintCommand;
|
import com.sk89q.worldedit.command.composition.PaintCommand;
|
||||||
|
import com.sk89q.worldedit.command.composition.SelectionCommand;
|
||||||
import com.sk89q.worldedit.command.composition.ShapedBrushCommand;
|
import com.sk89q.worldedit.command.composition.ShapedBrushCommand;
|
||||||
import com.sk89q.worldedit.event.platform.CommandEvent;
|
import com.sk89q.worldedit.event.platform.CommandEvent;
|
||||||
import com.sk89q.worldedit.event.platform.CommandSuggestionEvent;
|
import com.sk89q.worldedit.event.platform.CommandSuggestionEvent;
|
||||||
@ -149,6 +150,7 @@ public final class CommandManager {
|
|||||||
.registerMethods(new ToolUtilCommands(worldEdit))
|
.registerMethods(new ToolUtilCommands(worldEdit))
|
||||||
.registerMethods(new ToolCommands(worldEdit))
|
.registerMethods(new ToolCommands(worldEdit))
|
||||||
.registerMethods(new UtilityCommands(worldEdit))
|
.registerMethods(new UtilityCommands(worldEdit))
|
||||||
|
.register(adapt(new SelectionCommand(new ApplyCommand(new ReplaceParser(), "Set all blocks within selection"), "worldedit.region.set")), "/set")
|
||||||
.group("worldedit", "we")
|
.group("worldedit", "we")
|
||||||
.describeAs("WorldEdit commands")
|
.describeAs("WorldEdit commands")
|
||||||
.registerMethods(new WorldEditCommands(worldEdit))
|
.registerMethods(new WorldEditCommands(worldEdit))
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren