Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 13:00:05 +01:00
Fixed //drawsel
Dieser Commit ist enthalten in:
Ursprung
6e016a66f0
Commit
32d4b36419
@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<assembly
|
|
||||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
|
||||||
<includeBaseDirectory>false</includeBaseDirectory>
|
|
||||||
<formats>
|
|
||||||
<format>tar.gz</format>
|
|
||||||
<format>tar.bz2</format>
|
|
||||||
<format>zip</format>
|
|
||||||
</formats>
|
|
||||||
<files>
|
|
||||||
<file>
|
|
||||||
<source>${project.build.directory}/${artifactId}-${project.version}.jar</source>
|
|
||||||
<destName>WorldEdit.jar</destName>
|
|
||||||
<outputDirectory>/</outputDirectory>
|
|
||||||
<filtered>false</filtered>
|
|
||||||
</file>
|
|
||||||
<file>
|
|
||||||
<source>README.html</source>
|
|
||||||
<outputDirectory>/</outputDirectory>
|
|
||||||
<filtered>true</filtered>
|
|
||||||
</file>
|
|
||||||
</files>
|
|
||||||
<fileSets>
|
|
||||||
<fileSet>
|
|
||||||
<includes>
|
|
||||||
<include>LICENSE.txt</include>
|
|
||||||
<include>CHANGELOG.txt</include>
|
|
||||||
<include>contrib/craftscripts/*</include>
|
|
||||||
</includes>
|
|
||||||
</fileSet>
|
|
||||||
</fileSets>
|
|
||||||
</assembly>
|
|
@ -161,7 +161,7 @@ public class GeneralCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.drawsel")
|
@CommandPermissions("worldedit.drawsel")
|
||||||
public void drawSelection(Player player, LocalSession session,
|
public void drawSelection(Player player, LocalSession session,
|
||||||
@Arg(desc = "The new draw selection state", def = "toggle")
|
@Arg(desc = "The new draw selection state", def = "")
|
||||||
Boolean drawSelection) throws WorldEditException {
|
Boolean drawSelection) throws WorldEditException {
|
||||||
if (!WorldEdit.getInstance().getConfiguration().serverSideCUI) {
|
if (!WorldEdit.getInstance().getConfiguration().serverSideCUI) {
|
||||||
throw new DisallowedUsageException("This functionality is disabled in the configuration!");
|
throw new DisallowedUsageException("This functionality is disabled in the configuration!");
|
||||||
|
@ -308,7 +308,7 @@ public class SchematicCommands {
|
|||||||
return res;
|
return res;
|
||||||
});
|
});
|
||||||
|
|
||||||
String pageCommand = actor.isPlayer() ? "/schem list -p %page%" + (oldFirst ? " -d" : newFirst ? " -n" : "") : null;
|
String pageCommand = actor.isPlayer() ? "//schem list -p %page%" + (oldFirst ? " -d" : newFirst ? " -n" : "") : null;
|
||||||
PaginationBox paginationBox = new SchematicPaginationBox(worldEdit.getConfiguration().saveDir, files, pageCommand);
|
PaginationBox paginationBox = new SchematicPaginationBox(worldEdit.getConfiguration().saveDir, files, pageCommand);
|
||||||
actor.print(paginationBox.create(page));
|
actor.print(paginationBox.create(page));
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.command;
|
package com.sk89q.worldedit.command;
|
||||||
|
|
||||||
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.PLACEMENT;
|
||||||
|
|
||||||
import com.sk89q.worldedit.EditSession;
|
import com.sk89q.worldedit.EditSession;
|
||||||
import com.sk89q.worldedit.IncompleteRegionException;
|
import com.sk89q.worldedit.IncompleteRegionException;
|
||||||
import com.sk89q.worldedit.LocalConfiguration;
|
import com.sk89q.worldedit.LocalConfiguration;
|
||||||
@ -51,7 +53,6 @@ import com.sk89q.worldedit.math.BlockVector3;
|
|||||||
import com.sk89q.worldedit.regions.CuboidRegion;
|
import com.sk89q.worldedit.regions.CuboidRegion;
|
||||||
import com.sk89q.worldedit.regions.CylinderRegion;
|
import com.sk89q.worldedit.regions.CylinderRegion;
|
||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import com.sk89q.worldedit.util.formatting.component.InvalidComponentException;
|
|
||||||
import com.sk89q.worldedit.util.formatting.component.SubtleFormat;
|
import com.sk89q.worldedit.util.formatting.component.SubtleFormat;
|
||||||
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.util.formatting.text.format.TextColor;
|
||||||
@ -69,8 +70,6 @@ import java.util.List;
|
|||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.PLACEMENT;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility commands.
|
* Utility commands.
|
||||||
*/
|
*/
|
||||||
@ -386,7 +385,6 @@ public class UtilityCommands {
|
|||||||
LocalConfiguration config = we.getConfiguration();
|
LocalConfiguration config = we.getConfiguration();
|
||||||
Player player = actor instanceof Player ? (Player) actor : null;
|
Player player = actor instanceof Player ? (Player) actor : null;
|
||||||
|
|
||||||
int defaultRadius = config.butcherDefaultRadius;
|
|
||||||
if (radius == null) {
|
if (radius == null) {
|
||||||
radius = config.butcherDefaultRadius;
|
radius = config.butcherDefaultRadius;
|
||||||
} else if (radius < -1) {
|
} else if (radius < -1) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren