mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Further translations
This commit is contained in:
parent
0e6037584f
commit
4ba54c4337
@ -66,7 +66,6 @@ import java.util.Set;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.REGION;
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.REGION;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implements biome-related commands such as "/biomelist".
|
* Implements biome-related commands such as "/biomelist".
|
||||||
|
@ -48,7 +48,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.REGION;
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.REGION;
|
||||||
import static com.sk89q.worldedit.internal.command.CommandUtil.requireIV;
|
import static com.sk89q.worldedit.internal.command.CommandUtil.requireIV;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extracted from {@link SelectionCommands} to allow importing of {@link Command}.
|
* Extracted from {@link SelectionCommands} to allow importing of {@link Command}.
|
||||||
|
@ -225,11 +225,11 @@ public class GeneralCommands {
|
|||||||
}
|
}
|
||||||
boolean previousMode = session.isTickingWatchdog();
|
boolean previousMode = session.isTickingWatchdog();
|
||||||
if (hookMode != null && (hookMode == HookMode.ACTIVE) == previousMode) {
|
if (hookMode != null && (hookMode == HookMode.ACTIVE) == previousMode) {
|
||||||
actor.printError(TranslatableComponent.of(previousMode ? "worldedit.watchdog.already-active" : "worldedit.watchdog.already-inactive"));
|
actor.printError(TranslatableComponent.of(previousMode ? "worldedit.watchdog.active.already" : "worldedit.watchdog.inactive.already"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
session.setTickingWatchdog(!previousMode);
|
session.setTickingWatchdog(!previousMode);
|
||||||
actor.printInfo(TranslatableComponent.of(previousMode ? "worldedit.watchdog.now-inactive" : "worldedit.watchdog.now-active"));
|
actor.printInfo(TranslatableComponent.of(previousMode ? "worldedit.watchdog.inactive" : "worldedit.watchdog.active"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
|
@ -51,7 +51,6 @@ import static com.sk89q.worldedit.command.util.Logging.LogMode.ALL;
|
|||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.PLACEMENT;
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.PLACEMENT;
|
||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.POSITION;
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.POSITION;
|
||||||
import static com.sk89q.worldedit.internal.command.CommandUtil.checkCommandArgument;
|
import static com.sk89q.worldedit.internal.command.CommandUtil.checkCommandArgument;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Commands for the generation of shapes and other objects.
|
* Commands for the generation of shapes and other objects.
|
||||||
|
@ -36,7 +36,6 @@ import org.enginehub.piston.annotation.param.Switch;
|
|||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.sk89q.worldedit.command.util.Logging.LogMode.POSITION;
|
import static com.sk89q.worldedit.command.util.Logging.LogMode.POSITION;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Commands for moving the player around.
|
* Commands for moving the player around.
|
||||||
|
@ -75,7 +75,6 @@ import static com.sk89q.worldedit.internal.command.CommandUtil.checkCommandArgum
|
|||||||
import static com.sk89q.worldedit.regions.Regions.asFlatRegion;
|
import static com.sk89q.worldedit.regions.Regions.asFlatRegion;
|
||||||
import static com.sk89q.worldedit.regions.Regions.maximumBlockY;
|
import static com.sk89q.worldedit.regions.Regions.maximumBlockY;
|
||||||
import static com.sk89q.worldedit.regions.Regions.minimumBlockY;
|
import static com.sk89q.worldedit.regions.Regions.minimumBlockY;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Commands that operate on regions.
|
* Commands that operate on regions.
|
||||||
|
@ -66,6 +66,7 @@ import com.sk89q.worldedit.util.formatting.component.SubtleFormat;
|
|||||||
import com.sk89q.worldedit.util.formatting.component.TextComponentProducer;
|
import com.sk89q.worldedit.util.formatting.component.TextComponentProducer;
|
||||||
import com.sk89q.worldedit.util.formatting.text.Component;
|
import com.sk89q.worldedit.util.formatting.text.Component;
|
||||||
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
||||||
|
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
||||||
import com.sk89q.worldedit.util.formatting.text.event.ClickEvent;
|
import com.sk89q.worldedit.util.formatting.text.event.ClickEvent;
|
||||||
import com.sk89q.worldedit.util.formatting.text.event.HoverEvent;
|
import com.sk89q.worldedit.util.formatting.text.event.HoverEvent;
|
||||||
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
||||||
@ -116,12 +117,12 @@ public class SelectionCommands {
|
|||||||
} else if (actor instanceof Locatable) {
|
} else if (actor instanceof Locatable) {
|
||||||
pos = ((Locatable) actor).getBlockLocation();
|
pos = ((Locatable) actor).getBlockLocation();
|
||||||
} else {
|
} else {
|
||||||
actor.printError("You must provide coordinates as console.");
|
actor.printError(TranslatableComponent.of("worldedit.pos.console-require-coords"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!session.getRegionSelector(world).selectPrimary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(actor))) {
|
if (!session.getRegionSelector(world).selectPrimary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(actor))) {
|
||||||
actor.printError("Position already set.");
|
actor.printError(TranslatableComponent.of("worldedit.pos.already-set"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,12 +145,12 @@ public class SelectionCommands {
|
|||||||
} else if (actor instanceof Locatable) {
|
} else if (actor instanceof Locatable) {
|
||||||
pos = ((Locatable) actor).getBlockLocation();
|
pos = ((Locatable) actor).getBlockLocation();
|
||||||
} else {
|
} else {
|
||||||
actor.printError("You must provide coordinates as console.");
|
actor.printError(TranslatableComponent.of("worldedit.pos.console-require-coords"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!session.getRegionSelector(world).selectSecondary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(actor))) {
|
if (!session.getRegionSelector(world).selectSecondary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(actor))) {
|
||||||
actor.printError("Position already set.");
|
actor.printError(TranslatableComponent.of("worldedit.pos.already-set"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,14 +169,14 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
if (pos != null) {
|
if (pos != null) {
|
||||||
if (!session.getRegionSelector(player.getWorld()).selectPrimary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(player))) {
|
if (!session.getRegionSelector(player.getWorld()).selectPrimary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(player))) {
|
||||||
player.printError("Position already set.");
|
player.printError(TranslatableComponent.of("worldedit.hpos.already-set"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
session.getRegionSelector(player.getWorld())
|
session.getRegionSelector(player.getWorld())
|
||||||
.explainPrimarySelection(player, session, pos.toVector().toBlockPoint());
|
.explainPrimarySelection(player, session, pos.toVector().toBlockPoint());
|
||||||
} else {
|
} else {
|
||||||
player.printError("No block in sight!");
|
player.printError(TranslatableComponent.of("worldedit.hpos.no-block"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,14 +191,14 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
if (pos != null) {
|
if (pos != null) {
|
||||||
if (!session.getRegionSelector(player.getWorld()).selectSecondary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(player))) {
|
if (!session.getRegionSelector(player.getWorld()).selectSecondary(pos.toVector().toBlockPoint(), ActorSelectorLimits.forActor(player))) {
|
||||||
player.printError("Position already set.");
|
player.printError(TranslatableComponent.of("worldedit.hpos.already-set"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
session.getRegionSelector(player.getWorld())
|
session.getRegionSelector(player.getWorld())
|
||||||
.explainSecondarySelection(player, session, pos.toVector().toBlockPoint());
|
.explainSecondarySelection(player, session, pos.toVector().toBlockPoint());
|
||||||
} else {
|
} else {
|
||||||
player.printError("No block in sight!");
|
player.printError(TranslatableComponent.of("worldedit.hpos.no-block"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,9 +226,13 @@ public class SelectionCommands {
|
|||||||
min = BlockVector3.at(min2D.getBlockX() * 16, 0, min2D.getBlockZ() * 16);
|
min = BlockVector3.at(min2D.getBlockX() * 16, 0, min2D.getBlockZ() * 16);
|
||||||
max = BlockVector3.at(max2D.getBlockX() * 16 + 15, world.getMaxY(), max2D.getBlockZ() * 16 + 15);
|
max = BlockVector3.at(max2D.getBlockX() * 16 + 15, world.getMaxY(), max2D.getBlockZ() * 16 + 15);
|
||||||
|
|
||||||
actor.print("Chunks selected: ("
|
actor.printInfo(TranslatableComponent.of(
|
||||||
+ min2D.getBlockX() + ", " + min2D.getBlockZ() + ") - ("
|
"worldedit.chunk.selected-multiple",
|
||||||
+ max2D.getBlockX() + ", " + max2D.getBlockZ() + ")");
|
TextComponent.of(min2D.getBlockX()),
|
||||||
|
TextComponent.of(min2D.getBlockZ()),
|
||||||
|
TextComponent.of(max2D.getBlockX()),
|
||||||
|
TextComponent.of(max2D.getBlockZ())
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
final BlockVector2 min2D;
|
final BlockVector2 min2D;
|
||||||
if (coordinates != null) {
|
if (coordinates != null) {
|
||||||
@ -247,8 +252,8 @@ public class SelectionCommands {
|
|||||||
min = BlockVector3.at(min2D.getBlockX() * 16, 0, min2D.getBlockZ() * 16);
|
min = BlockVector3.at(min2D.getBlockX() * 16, 0, min2D.getBlockZ() * 16);
|
||||||
max = min.add(15, world.getMaxY(), 15);
|
max = min.add(15, world.getMaxY(), 15);
|
||||||
|
|
||||||
actor.print("Chunk selected: "
|
actor.printInfo(TranslatableComponent.of("worldedit.chunk.selected", TextComponent.of(min2D.getBlockX()),
|
||||||
+ min2D.getBlockX() + ", " + min2D.getBlockZ());
|
TextComponent.of(min2D.getBlockZ())));
|
||||||
}
|
}
|
||||||
|
|
||||||
final CuboidRegionSelector selector;
|
final CuboidRegionSelector selector;
|
||||||
@ -278,16 +283,16 @@ public class SelectionCommands {
|
|||||||
}
|
}
|
||||||
ItemType itemType = ItemTypes.get(wandId);
|
ItemType itemType = ItemTypes.get(wandId);
|
||||||
if (itemType == null) {
|
if (itemType == null) {
|
||||||
player.printError("Wand item is mis-configured or disabled.");
|
player.printError(TranslatableComponent.of("worldedit.wand.invalid"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
player.giveItem(new BaseItemStack(itemType, 1));
|
player.giveItem(new BaseItemStack(itemType, 1));
|
||||||
if (navWand) {
|
if (navWand) {
|
||||||
session.setTool(itemType, new NavigationWand());
|
session.setTool(itemType, new NavigationWand());
|
||||||
player.print("Left click: jump to location; Right click: pass through walls");
|
player.printInfo(TranslatableComponent.of("worldedit.wand.navwand.info"));
|
||||||
} else {
|
} else {
|
||||||
session.setTool(itemType, new SelectionWand());
|
session.setTool(itemType, new SelectionWand());
|
||||||
player.print("Left click: select pos #1; Right click: select pos #2");
|
player.printInfo(TranslatableComponent.of("worldedit.wand.selwand.info"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -339,9 +344,9 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
||||||
|
|
||||||
actor.print("Region contracted " + (oldSize - newSize) + " blocks.");
|
actor.printInfo(TranslatableComponent.of("worldedit.contract.contracted", TextComponent.of(oldSize - newSize)));
|
||||||
} catch (RegionOperationException e) {
|
} catch (RegionOperationException e) {
|
||||||
actor.printError(e.getMessage());
|
actor.printError(TextComponent.of(e.getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -368,9 +373,9 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
||||||
|
|
||||||
actor.print("Region shifted.");
|
actor.print(TranslatableComponent.of("worldedit.shift.shifted"));
|
||||||
} catch (RegionOperationException e) {
|
} catch (RegionOperationException e) {
|
||||||
actor.printError(e.getMessage());
|
actor.printError(TextComponent.of(e.getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,7 +396,7 @@ public class SelectionCommands {
|
|||||||
region.expand(getChangesForEachDir(amount, onlyHorizontal, onlyVertical));
|
region.expand(getChangesForEachDir(amount, onlyHorizontal, onlyVertical));
|
||||||
session.getRegionSelector(world).learnChanges();
|
session.getRegionSelector(world).learnChanges();
|
||||||
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
||||||
actor.print("Region outset.");
|
actor.print(TranslatableComponent.of("worldedit.outset.outset"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -411,7 +416,7 @@ public class SelectionCommands {
|
|||||||
region.contract(getChangesForEachDir(amount, onlyHorizontal, onlyVertical));
|
region.contract(getChangesForEachDir(amount, onlyHorizontal, onlyVertical));
|
||||||
session.getRegionSelector(world).learnChanges();
|
session.getRegionSelector(world).learnChanges();
|
||||||
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
session.getRegionSelector(world).explainRegionAdjust(actor, session);
|
||||||
actor.print("Region inset.");
|
actor.print(TranslatableComponent.of("worldedit.inset.inset"));
|
||||||
}
|
}
|
||||||
|
|
||||||
private BlockVector3[] getChangesForEachDir(int amount, boolean onlyHorizontal, boolean onlyVertical) {
|
private BlockVector3[] getChangesForEachDir(int amount, boolean onlyHorizontal, boolean onlyVertical) {
|
||||||
@ -447,36 +452,36 @@ public class SelectionCommands {
|
|||||||
region = clipboard.getRegion();
|
region = clipboard.getRegion();
|
||||||
|
|
||||||
BlockVector3 origin = clipboard.getOrigin();
|
BlockVector3 origin = clipboard.getOrigin();
|
||||||
actor.print("Offset: " + origin);
|
actor.printInfo(TranslatableComponent.of("worldedit.size.offset", TextComponent.of(origin.toString())));
|
||||||
} else {
|
} else {
|
||||||
region = session.getSelection(world);
|
region = session.getSelection(world);
|
||||||
|
|
||||||
actor.print("Type: " + session.getRegionSelector(world).getTypeName());
|
actor.printInfo(TranslatableComponent.of("worldedit.size.type", TextComponent.of(session.getRegionSelector(world).getTypeName())));
|
||||||
|
|
||||||
for (String line : session.getRegionSelector(world).getInformationLines()) {
|
for (String line : session.getRegionSelector(world).getInformationLines()) {
|
||||||
actor.print(line);
|
actor.printInfo(TextComponent.of(line));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BlockVector3 size = region.getMaximumPoint()
|
BlockVector3 size = region.getMaximumPoint()
|
||||||
.subtract(region.getMinimumPoint())
|
.subtract(region.getMinimumPoint())
|
||||||
.add(1, 1, 1);
|
.add(1, 1, 1);
|
||||||
|
|
||||||
actor.print("Size: " + size);
|
actor.printInfo(TranslatableComponent.of("worldedit.size.size", TextComponent.of(size.toString())));
|
||||||
actor.print("Cuboid distance: " + region.getMaximumPoint().distance(region.getMinimumPoint()));
|
actor.printInfo(TranslatableComponent.of("worldedit.size.distance", TextComponent.of(region.getMaximumPoint().distance(region.getMinimumPoint()))));
|
||||||
actor.print("# of blocks: " + region.getArea());
|
actor.printInfo(TranslatableComponent.of("worldedit.size.blocks", TextComponent.of(region.getArea())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
name = "/count",
|
name = "/count",
|
||||||
desc = "Counts the number of blocks matching a mask"
|
desc = "Counts the number of blocks matching a mask"
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.analysis.count")
|
@CommandPermissions("worldedit.analysis.count")
|
||||||
public void count(Actor actor, World world, LocalSession session, EditSession editSession,
|
public int count(Actor actor, World world, LocalSession session, EditSession editSession,
|
||||||
@Arg(desc = "The mask of blocks to match")
|
@Arg(desc = "The mask of blocks to match")
|
||||||
Mask mask) throws WorldEditException {
|
Mask mask) throws WorldEditException {
|
||||||
int count = editSession.countBlocks(session.getSelection(world), mask);
|
int count = editSession.countBlocks(session.getSelection(world), mask);
|
||||||
actor.print("Counted: " + count);
|
actor.printInfo(TranslatableComponent.of("worldedit.count.counted", TextComponent.of(count)));
|
||||||
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -510,13 +515,13 @@ public class SelectionCommands {
|
|||||||
} else {
|
} else {
|
||||||
distribution = session.getLastDistribution();
|
distribution = session.getLastDistribution();
|
||||||
if (distribution == null) {
|
if (distribution == null) {
|
||||||
actor.printError("No previous distribution.");
|
actor.printError(TranslatableComponent.of("worldedit.distr.no-previous"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (distribution.isEmpty()) { // *Should* always be false
|
if (distribution.isEmpty()) { // *Should* always be false
|
||||||
actor.printError("No blocks counted.");
|
actor.printError(TranslatableComponent.of("worldedit.distr.no-blocks"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -542,7 +547,7 @@ public class SelectionCommands {
|
|||||||
if (selector == null) {
|
if (selector == null) {
|
||||||
session.getRegionSelector(world).clear();
|
session.getRegionSelector(world).clear();
|
||||||
session.dispatchCUISelection(actor);
|
session.dispatchCUISelection(actor);
|
||||||
actor.print("Selection cleared.");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.cleared"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -552,38 +557,38 @@ public class SelectionCommands {
|
|||||||
switch (selector) {
|
switch (selector) {
|
||||||
case CUBOID:
|
case CUBOID:
|
||||||
newSelector = new CuboidRegionSelector(oldSelector);
|
newSelector = new CuboidRegionSelector(oldSelector);
|
||||||
actor.print("Cuboid: left click for point 1, right click for point 2");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.cuboid.message"));
|
||||||
break;
|
break;
|
||||||
case EXTEND:
|
case EXTEND:
|
||||||
newSelector = new ExtendingCuboidRegionSelector(oldSelector);
|
newSelector = new ExtendingCuboidRegionSelector(oldSelector);
|
||||||
actor.print("Cuboid: left click for a starting point, right click to extend");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.extend.message"));
|
||||||
break;
|
break;
|
||||||
case POLY: {
|
case POLY: {
|
||||||
newSelector = new Polygonal2DRegionSelector(oldSelector);
|
newSelector = new Polygonal2DRegionSelector(oldSelector);
|
||||||
actor.print("2D polygon selector: Left/right click to add a point.");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.poly.message"));
|
||||||
Optional<Integer> limit = ActorSelectorLimits.forActor(actor).getPolygonVertexLimit();
|
Optional<Integer> limit = ActorSelectorLimits.forActor(actor).getPolygonVertexLimit();
|
||||||
limit.ifPresent(integer -> actor.print(integer + " points maximum."));
|
limit.ifPresent(integer -> actor.printInfo(TranslatableComponent.of("worldedit.select.poly.limit-message", TextComponent.of(integer))));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ELLIPSOID:
|
case ELLIPSOID:
|
||||||
newSelector = new EllipsoidRegionSelector(oldSelector);
|
newSelector = new EllipsoidRegionSelector(oldSelector);
|
||||||
actor.print("Ellipsoid selector: left click=center, right click to extend");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.ellipsoid.message"));
|
||||||
break;
|
break;
|
||||||
case SPHERE:
|
case SPHERE:
|
||||||
newSelector = new SphereRegionSelector(oldSelector);
|
newSelector = new SphereRegionSelector(oldSelector);
|
||||||
actor.print("Sphere selector: left click=center, right click to set radius");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.sphere.message"));
|
||||||
break;
|
break;
|
||||||
case CYL:
|
case CYL:
|
||||||
newSelector = new CylinderRegionSelector(oldSelector);
|
newSelector = new CylinderRegionSelector(oldSelector);
|
||||||
actor.print("Cylindrical selector: Left click=center, right click to extend.");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.cyl.message"));
|
||||||
break;
|
break;
|
||||||
case CONVEX:
|
case CONVEX:
|
||||||
case HULL:
|
case HULL:
|
||||||
case POLYHEDRON: {
|
case POLYHEDRON: {
|
||||||
newSelector = new ConvexPolyhedralRegionSelector(oldSelector);
|
newSelector = new ConvexPolyhedralRegionSelector(oldSelector);
|
||||||
actor.print("Convex polyhedral selector: Left click=First vertex, right click to add more.");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.convex.message"));
|
||||||
Optional<Integer> limit = ActorSelectorLimits.forActor(actor).getPolyhedronVertexLimit();
|
Optional<Integer> limit = ActorSelectorLimits.forActor(actor).getPolyhedronVertexLimit();
|
||||||
limit.ifPresent(integer -> actor.print(integer + " points maximum."));
|
limit.ifPresent(integer -> actor.printInfo(TranslatableComponent.of("worldedit.select.convex.limit-message", TextComponent.of(integer))));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case LIST:
|
case LIST:
|
||||||
@ -593,13 +598,13 @@ public class SelectionCommands {
|
|||||||
TextComponentProducer contents = box.getContents();
|
TextComponentProducer contents = box.getContents();
|
||||||
contents.append(SubtleFormat.wrap("Select one of the modes below:")).newline();
|
contents.append(SubtleFormat.wrap("Select one of the modes below:")).newline();
|
||||||
|
|
||||||
box.appendCommand("cuboid", "Select two corners of a cuboid", "//sel cuboid");
|
box.appendCommand("cuboid", TranslatableComponent.of("worldedit.select.cuboid.description"), "//sel cuboid");
|
||||||
box.appendCommand("extend", "Fast cuboid selection mode", "//sel extend");
|
box.appendCommand("extend", TranslatableComponent.of("worldedit.select.extend.description"), "//sel extend");
|
||||||
box.appendCommand("poly", "Select a 2D polygon with height", "//sel poly");
|
box.appendCommand("poly", TranslatableComponent.of("worldedit.select.poly.description"), "//sel poly");
|
||||||
box.appendCommand("ellipsoid", "Select an ellipsoid", "//sel ellipsoid");
|
box.appendCommand("ellipsoid", TranslatableComponent.of("worldedit.select.ellipsoid.description"), "//sel ellipsoid");
|
||||||
box.appendCommand("sphere", "Select a sphere", "//sel sphere");
|
box.appendCommand("sphere", TranslatableComponent.of("worldedit.select.sphere.description"), "//sel sphere");
|
||||||
box.appendCommand("cyl", "Select a cylinder", "//sel cyl");
|
box.appendCommand("cyl", TranslatableComponent.of("worldedit.select.cyl.description"), "//sel cyl");
|
||||||
box.appendCommand("convex", "Select a convex polyhedral", "//sel convex");
|
box.appendCommand("convex", TranslatableComponent.of("worldedit.select.convex.description"), "//sel convex");
|
||||||
|
|
||||||
actor.print(box.create(1));
|
actor.print(box.create(1));
|
||||||
return;
|
return;
|
||||||
@ -616,7 +621,7 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
if (found != null) {
|
if (found != null) {
|
||||||
session.setDefaultRegionSelector(found);
|
session.setDefaultRegionSelector(found);
|
||||||
actor.print("Your default region selector is now " + found.name() + ".");
|
actor.printInfo(TranslatableComponent.of("worldedit.select.default-set", TextComponent.of(found.name())));
|
||||||
} else {
|
} else {
|
||||||
throw new RuntimeException("Something unexpected happened. Please report this.");
|
throw new RuntimeException("Something unexpected happened. Please report this.");
|
||||||
}
|
}
|
||||||
@ -679,7 +684,7 @@ public class SelectionCommands {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component create(int page) throws InvalidComponentException {
|
public Component create(int page) throws InvalidComponentException {
|
||||||
super.getContents().append(TextComponent.of("Total Block Count: " + totalBlocks, TextColor.GRAY))
|
super.getContents().append(TranslatableComponent.of("worldedit.distr.total", TextColor.GRAY, TextComponent.of(totalBlocks)))
|
||||||
.append(TextComponent.newline());
|
.append(TextComponent.newline());
|
||||||
return super.create(page);
|
return super.create(page);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public class SuperPickaxeCommands {
|
|||||||
public void single(Player player, LocalSession session) throws WorldEditException {
|
public void single(Player player, LocalSession session) throws WorldEditException {
|
||||||
session.setSuperPickaxe(new SinglePickaxe());
|
session.setSuperPickaxe(new SinglePickaxe());
|
||||||
session.enableSuperPickAxe();
|
session.enableSuperPickAxe();
|
||||||
player.printInfo(TranslatableComponent.of("worldedit.superpickaxe.mode.single"));
|
player.printInfo(TranslatableComponent.of("worldedit.tool.superpickaxe.mode.single"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -72,7 +72,7 @@ public class SuperPickaxeCommands {
|
|||||||
|
|
||||||
session.setSuperPickaxe(new AreaPickaxe(range));
|
session.setSuperPickaxe(new AreaPickaxe(range));
|
||||||
session.enableSuperPickAxe();
|
session.enableSuperPickAxe();
|
||||||
player.printInfo(TranslatableComponent.of("worldedit.superpickaxe.mode.area"));
|
player.printInfo(TranslatableComponent.of("worldedit.tool.superpickaxe.mode.area"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -94,6 +94,6 @@ public class SuperPickaxeCommands {
|
|||||||
|
|
||||||
session.setSuperPickaxe(new RecursivePickaxe(range));
|
session.setSuperPickaxe(new RecursivePickaxe(range));
|
||||||
session.enableSuperPickAxe();
|
session.enableSuperPickAxe();
|
||||||
player.printInfo(TranslatableComponent.of("worldedit.superpickaxe.mode.recursive"));
|
player.printInfo(TranslatableComponent.of("worldedit.tool.superpickaxe.mode.recursive"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ public class ToolCommands {
|
|||||||
LocalConfiguration config = we.getConfiguration();
|
LocalConfiguration config = we.getConfiguration();
|
||||||
|
|
||||||
if (range > config.maxSuperPickaxeSize) {
|
if (range > config.maxSuperPickaxeSize) {
|
||||||
player.printError("Maximum range: " + config.maxSuperPickaxeSize);
|
player.printError(TranslatableComponent.of("worldedit.superpickaxe.max-range", TextComponent.of(config.maxSuperPickaxeSize)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ import com.sk89q.worldedit.entity.Player;
|
|||||||
import com.sk89q.worldedit.function.mask.Mask;
|
import com.sk89q.worldedit.function.mask.Mask;
|
||||||
import com.sk89q.worldedit.function.pattern.Pattern;
|
import com.sk89q.worldedit.function.pattern.Pattern;
|
||||||
import com.sk89q.worldedit.util.HandSide;
|
import com.sk89q.worldedit.util.HandSide;
|
||||||
|
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
||||||
import org.enginehub.piston.annotation.Command;
|
import org.enginehub.piston.annotation.Command;
|
||||||
import org.enginehub.piston.annotation.CommandContainer;
|
import org.enginehub.piston.annotation.CommandContainer;
|
||||||
import org.enginehub.piston.annotation.param.Arg;
|
import org.enginehub.piston.annotation.param.Arg;
|
||||||
@ -54,15 +55,15 @@ public class ToolUtilCommands {
|
|||||||
Boolean superPickaxe) {
|
Boolean superPickaxe) {
|
||||||
boolean hasSuperPickAxe = session.hasSuperPickAxe();
|
boolean hasSuperPickAxe = session.hasSuperPickAxe();
|
||||||
if (superPickaxe != null && superPickaxe == hasSuperPickAxe) {
|
if (superPickaxe != null && superPickaxe == hasSuperPickAxe) {
|
||||||
player.printError("Super pickaxe already " + (superPickaxe ? "enabled" : "disabled") + ".");
|
player.printError(TranslatableComponent.of(superPickaxe ? "worldedit.tool.superpickaxe.enabled.already" : "worldedit.tool.superpickaxe.disabled.already"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (hasSuperPickAxe) {
|
if (hasSuperPickAxe) {
|
||||||
session.disableSuperPickAxe();
|
session.disableSuperPickAxe();
|
||||||
player.print("Super pickaxe disabled.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.superpickaxe.disabled"));
|
||||||
} else {
|
} else {
|
||||||
session.enableSuperPickAxe();
|
session.enableSuperPickAxe();
|
||||||
player.print("Super pickaxe enabled.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.superpickaxe.enabled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -77,9 +78,9 @@ public class ToolUtilCommands {
|
|||||||
Mask mask) throws WorldEditException {
|
Mask mask) throws WorldEditException {
|
||||||
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setMask(mask);
|
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setMask(mask);
|
||||||
if (mask == null) {
|
if (mask == null) {
|
||||||
player.print("Brush mask disabled.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.mask.disabled"));
|
||||||
} else {
|
} else {
|
||||||
player.print("Brush mask set.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.mask.set"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +94,7 @@ public class ToolUtilCommands {
|
|||||||
@Arg(desc = "The pattern of blocks to use")
|
@Arg(desc = "The pattern of blocks to use")
|
||||||
Pattern pattern) throws WorldEditException {
|
Pattern pattern) throws WorldEditException {
|
||||||
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setFill(pattern);
|
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setFill(pattern);
|
||||||
player.print("Brush material set.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.material.set"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -105,7 +106,7 @@ public class ToolUtilCommands {
|
|||||||
@Arg(desc = "The range of the brush")
|
@Arg(desc = "The range of the brush")
|
||||||
int range) throws WorldEditException {
|
int range) throws WorldEditException {
|
||||||
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setRange(range);
|
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setRange(range);
|
||||||
player.print("Brush range set.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.range.set"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -119,7 +120,7 @@ public class ToolUtilCommands {
|
|||||||
we.checkMaxBrushRadius(size);
|
we.checkMaxBrushRadius(size);
|
||||||
|
|
||||||
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setSize(size);
|
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setSize(size);
|
||||||
player.print("Brush size set.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.size.set"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
@ -132,9 +133,9 @@ public class ToolUtilCommands {
|
|||||||
Mask mask) throws WorldEditException {
|
Mask mask) throws WorldEditException {
|
||||||
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setTraceMask(mask);
|
session.getBrushTool(player.getItemInHand(HandSide.MAIN_HAND).getType()).setTraceMask(mask);
|
||||||
if (mask == null) {
|
if (mask == null) {
|
||||||
player.print("Trace mask disabled.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.tracemask.disabled"));
|
||||||
} else {
|
} else {
|
||||||
player.print("Trace mask set.");
|
player.printInfo(TranslatableComponent.of("worldedit.tool.tracemask.set"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,10 +19,13 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.command.util;
|
package com.sk89q.worldedit.command.util;
|
||||||
|
|
||||||
|
import static com.sk89q.worldedit.internal.command.CommandUtil.byCleanName;
|
||||||
|
import static com.sk89q.worldedit.internal.command.CommandUtil.getSubCommands;
|
||||||
|
import static java.util.stream.Collectors.toList;
|
||||||
|
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.collect.Iterables;
|
import com.google.common.collect.Iterables;
|
||||||
import com.sk89q.worldedit.WorldEdit;
|
|
||||||
import com.sk89q.worldedit.extension.platform.Actor;
|
import com.sk89q.worldedit.extension.platform.Actor;
|
||||||
import com.sk89q.worldedit.util.formatting.component.CommandListBox;
|
import com.sk89q.worldedit.util.formatting.component.CommandListBox;
|
||||||
import com.sk89q.worldedit.util.formatting.component.CommandUsageBox;
|
import com.sk89q.worldedit.util.formatting.component.CommandUsageBox;
|
||||||
@ -39,10 +42,6 @@ import java.util.Optional;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
import static com.sk89q.worldedit.internal.command.CommandUtil.byCleanName;
|
|
||||||
import static com.sk89q.worldedit.internal.command.CommandUtil.getSubCommands;
|
|
||||||
import static java.util.stream.Collectors.toList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Implementation of the //help command.
|
* Implementation of the //help command.
|
||||||
*/
|
*/
|
||||||
@ -91,8 +90,8 @@ public class PrintCommandHelp {
|
|||||||
Map<String, Command> subCommands = getSubCommands(currentCommand);
|
Map<String, Command> subCommands = getSubCommands(currentCommand);
|
||||||
|
|
||||||
if (subCommands.isEmpty()) {
|
if (subCommands.isEmpty()) {
|
||||||
actor.printError(String.format("'%s' has no sub-commands. (Maybe '%s' is for a parameter?)",
|
actor.printError(TranslatableComponent.of("worldedit.help.no-subcommands",
|
||||||
toCommandString(visited), subCommand));
|
TextComponent.of(toCommandString(visited)), TextComponent.of(subCommand)));
|
||||||
// full help for single command
|
// full help for single command
|
||||||
CommandUsageBox box = new CommandUsageBox(visited, visited.stream()
|
CommandUsageBox box = new CommandUsageBox(visited, visited.stream()
|
||||||
.map(Command::getName).collect(Collectors.joining(" ")), helpRootCommand);
|
.map(Command::getName).collect(Collectors.joining(" ")), helpRootCommand);
|
||||||
@ -104,8 +103,8 @@ public class PrintCommandHelp {
|
|||||||
currentCommand = subCommands.get(subCommand);
|
currentCommand = subCommands.get(subCommand);
|
||||||
visited.add(currentCommand);
|
visited.add(currentCommand);
|
||||||
} else {
|
} else {
|
||||||
actor.printError(String.format("The sub-command '%s' under '%s' could not be found.",
|
actor.printError(TranslatableComponent.of("worldedit.help.subcommand-not-found",
|
||||||
subCommand, toCommandString(visited)));
|
TextComponent.of(subCommand), TextComponent.of(toCommandString(visited))));
|
||||||
// list subcommands for currentCommand
|
// list subcommands for currentCommand
|
||||||
printCommands(page, getSubCommands(Iterables.getLast(visited)).values().stream(), actor, visited, helpRootCommand);
|
printCommands(page, getSubCommands(Iterables.getLast(visited)).values().stream(), actor, visited, helpRootCommand);
|
||||||
return;
|
return;
|
||||||
|
@ -35,7 +35,6 @@ import com.sk89q.worldedit.util.HandSide;
|
|||||||
import com.sk89q.worldedit.util.Location;
|
import com.sk89q.worldedit.util.Location;
|
||||||
import com.sk89q.worldedit.util.TargetBlock;
|
import com.sk89q.worldedit.util.TargetBlock;
|
||||||
import com.sk89q.worldedit.util.auth.AuthorizationException;
|
import com.sk89q.worldedit.util.auth.AuthorizationException;
|
||||||
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
|
||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import com.sk89q.worldedit.world.block.BaseBlock;
|
import com.sk89q.worldedit.world.block.BaseBlock;
|
||||||
import com.sk89q.worldedit.world.block.BlockState;
|
import com.sk89q.worldedit.world.block.BlockState;
|
||||||
|
@ -21,7 +21,6 @@ package com.sk89q.worldedit.function.operation;
|
|||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkArgument;
|
import static com.google.common.base.Preconditions.checkArgument;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package com.sk89q.worldedit.function.visitor;
|
package com.sk89q.worldedit.function.visitor;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package com.sk89q.worldedit.function.visitor;
|
package com.sk89q.worldedit.function.visitor;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
@ -33,9 +32,7 @@ import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
|||||||
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
||||||
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Visits entities as provided by an {@code Iterator}.
|
* Visits entities as provided by an {@code Iterator}.
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package com.sk89q.worldedit.function.visitor;
|
package com.sk89q.worldedit.function.visitor;
|
||||||
|
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
@ -34,9 +33,6 @@ import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
|||||||
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
import com.sk89q.worldedit.util.formatting.text.TranslatableComponent;
|
||||||
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
import com.sk89q.worldedit.util.formatting.text.format.TextColor;
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies region functions to columns in a {@link FlatRegion}.
|
* Applies region functions to columns in a {@link FlatRegion}.
|
||||||
*/
|
*/
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.function.visitor;
|
package com.sk89q.worldedit.function.visitor;
|
||||||
|
|
||||||
import static com.sk89q.worldedit.util.translation.LocalisationHelpers.pluraliseI18n;
|
|
||||||
|
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
import com.sk89q.worldedit.function.RegionFunction;
|
import com.sk89q.worldedit.function.RegionFunction;
|
||||||
|
@ -58,6 +58,7 @@ public class CommandListBox extends PaginationBox {
|
|||||||
appendCommand(alias, description, null);
|
appendCommand(alias, description, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public void appendCommand(String alias, String description, String insertion) {
|
public void appendCommand(String alias, String description, String insertion) {
|
||||||
appendCommand(alias, TextComponent.of(description), insertion);
|
appendCommand(alias, TextComponent.of(description), insertion);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,6 @@ import java.io.File;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.nio.charset.Charset;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -54,10 +54,10 @@
|
|||||||
"worldedit.searchitem.too-short": "Enter a longer search string (len > 2).",
|
"worldedit.searchitem.too-short": "Enter a longer search string (len > 2).",
|
||||||
"worldedit.searchitem.b-and-i": "You cannot use both the 'b' and 'i' flags simultaneously.",
|
"worldedit.searchitem.b-and-i": "You cannot use both the 'b' and 'i' flags simultaneously.",
|
||||||
"worldedit.watchdog.no-hook": "This platform has no watchdog hook.",
|
"worldedit.watchdog.no-hook": "This platform has no watchdog hook.",
|
||||||
"worldedit.watchdog.already-active": "Watchdog hook already active.",
|
"worldedit.watchdog.active.already": "Watchdog hook already active.",
|
||||||
"worldedit.watchdog.already-inactive": "Watchdog hook already inactive.",
|
"worldedit.watchdog.inactive.already": "Watchdog hook already inactive.",
|
||||||
"worldedit.watchdog.now-active": "Watchdog hook now active.",
|
"worldedit.watchdog.active": "Watchdog hook now active.",
|
||||||
"worldedit.watchdog.now-inactive": "Watchdog hook now inactive.",
|
"worldedit.watchdog.inactive": "Watchdog hook now inactive.",
|
||||||
"worldedit.world.remove": "Removed world override.",
|
"worldedit.world.remove": "Removed world override.",
|
||||||
"worldedit.world.set": "Set the world override to {0}. (Use //world to go back to default)",
|
"worldedit.world.set": "Set the world override to {0}. (Use //world to go back to default)",
|
||||||
|
|
||||||
@ -93,6 +93,47 @@
|
|||||||
"worldedit.schematic.delete.deleted": "{0} has been deleted.",
|
"worldedit.schematic.delete.deleted": "{0} has been deleted.",
|
||||||
"worldedit.schematic.formats.title": "Available clipboard formats (Name: Lookup names)",
|
"worldedit.schematic.formats.title": "Available clipboard formats (Name: Lookup names)",
|
||||||
|
|
||||||
|
"worldedit.pos.already-set": "Position already set.",
|
||||||
|
"worldedit.pos.console-require-coords": "You must provide coordinates as console.",
|
||||||
|
"worldedit.hpos.no-block": "No block in sight!",
|
||||||
|
"worldedit.hpos.already-set": "Position already set.",
|
||||||
|
"worldedit.chunk.selected-multiple": "Chunks selected: ({0}, {1}) - ({2}, {3})",
|
||||||
|
"worldedit.chunk.selected": "Chunk selected: {0}, {1}",
|
||||||
|
"worldedit.wand.invalid": "Wand item is mis-configured or disabled.",
|
||||||
|
"worldedit.wand.selwand.info": "Left click: select pos #1; Right click: select pos #2",
|
||||||
|
"worldedit.wand.navwand.info": "Left click: jump to location; Right click: pass through walls",
|
||||||
|
"worldedit.contract.contracted": "Region contracted {0} blocks.",
|
||||||
|
"worldedit.shift.shifted": "Region shifted.",
|
||||||
|
"worldedit.outset.outset": "Region outset.",
|
||||||
|
"worldedit.inset.inset": "Region inset.",
|
||||||
|
"worldedit.size.offset": "Offset: {0}",
|
||||||
|
"worldedit.size.type": "Type: {0}",
|
||||||
|
"worldedit.size.size": "Size: {0}",
|
||||||
|
"worldedit.size.distance": "Cuboid distance: {0}",
|
||||||
|
"worldedit.size.blocks": "# of blocks: {0}",
|
||||||
|
"worldedit.count.counted": "Counted: {0}",
|
||||||
|
"worldedit.distr.no-blocks": "No blocks counted.",
|
||||||
|
"worldedit.distr.no-previous": "No previous distribution.",
|
||||||
|
"worldedit.distr.total": "Total Block Count: {0}",
|
||||||
|
"worldedit.select.cleared": "Selection cleared.",
|
||||||
|
"worldedit.select.cuboid.message": "Cuboid: left click for point 1, right click for point 2",
|
||||||
|
"worldedit.select.cuboid.description": "Select two corners of a cuboid",
|
||||||
|
"worldedit.select.extend.message": "Cuboid: left click for a starting point, right click to extend",
|
||||||
|
"worldedit.select.extend.description": "Fast cuboid selection mode",
|
||||||
|
"worldedit.select.poly.message": "2D polygon selector: Left/right click to add a point.",
|
||||||
|
"worldedit.select.poly.limit-message": "{0} points maximum.",
|
||||||
|
"worldedit.select.poly.description": "Select a 2D polygon with height",
|
||||||
|
"worldedit.select.ellipsoid.message": "Ellipsoid selector: left click=center, right click to extend",
|
||||||
|
"worldedit.select.ellipsoid.description": "Select an ellipsoid",
|
||||||
|
"worldedit.select.sphere.message": "Sphere selector: left click=center, right click to set radius",
|
||||||
|
"worldedit.select.sphere.description": "Select a sphere",
|
||||||
|
"worldedit.select.cyl.message": "Cylindrical selector: Left click=center, right click to extend",
|
||||||
|
"worldedit.select.cyl.description": "Select a cylinder",
|
||||||
|
"worldedit.select.convex.message": "Convex polyhedral selector: Left click=First vertex, right click to add more.",
|
||||||
|
"worldedit.select.convex.limit-message": "{0} points maximum.",
|
||||||
|
"worldedit.select.convex.description": "Select a convex polyhedral",
|
||||||
|
"worldedit.select.default-set": "Your default region selector is now {0}.",
|
||||||
|
|
||||||
"worldedit.drain.drained": "{0} blocks have been drained.",
|
"worldedit.drain.drained": "{0} blocks have been drained.",
|
||||||
"worldedit.fill.created": "{0} blocks have been filled.",
|
"worldedit.fill.created": "{0} blocks have been filled.",
|
||||||
"worldedit.fillr.created": "{0} blocks have been filled.",
|
"worldedit.fillr.created": "{0} blocks have been filled.",
|
||||||
@ -203,10 +244,21 @@
|
|||||||
"worldedit.tool.lrbuild.equip": "Long-range building tool bound to {0}.",
|
"worldedit.tool.lrbuild.equip": "Long-range building tool bound to {0}.",
|
||||||
"worldedit.tool.lrbuild.set": "Left-click set to {0}; right-click set to {1}.",
|
"worldedit.tool.lrbuild.set": "Left-click set to {0}; right-click set to {1}.",
|
||||||
|
|
||||||
"worldedit.superpickaxe.mode.single": "Mode is now single. Left click with a pickaxe. // to disable.",
|
"worldedit.tool.superpickaxe.mode.single": "Mode is now single. Left click with a pickaxe. // to disable.",
|
||||||
"worldedit.superpickaxe.mode.area": "Mode is now area. Left click with a pickaxe. // to disable.",
|
"worldedit.tool.superpickaxe.mode.area": "Mode is now area. Left click with a pickaxe. // to disable.",
|
||||||
"worldedit.superpickaxe.mode.recursive": "Mode is now recursive. Left click with a pickaxe. // to disable.",
|
"worldedit.tool.superpickaxe.mode.recursive": "Mode is now recursive. Left click with a pickaxe. // to disable.",
|
||||||
"worldedit.superpickaxe.max-range": "Maximum range is {0}.",
|
"worldedit.tool.superpickaxe.max-range": "Maximum range is {0}.",
|
||||||
|
"worldedit.tool.superpickaxe.enabled.already": "Super pickaxe already enabled.",
|
||||||
|
"worldedit.tool.superpickaxe.disabled.already": "Super pickaxe already disabled.",
|
||||||
|
"worldedit.tool.superpickaxe.enabled": "Super pickaxe enabled.",
|
||||||
|
"worldedit.tool.superpickaxe.disabled": "Super pickaxe disabled.",
|
||||||
|
"worldedit.tool.mask.set": "Brush mask set.",
|
||||||
|
"worldedit.tool.mask.disabled": "Brush mask disabled.",
|
||||||
|
"worldedit.tool.material.set": "Brush material set.",
|
||||||
|
"worldedit.tool.range.set": "Brush range set.",
|
||||||
|
"worldedit.tool.size.set": "Brush size set.",
|
||||||
|
"worldedit.tool.tracemask.set": "Trace mask set.",
|
||||||
|
"worldedit.tool.tracemask.disabled": "Trace mask disabled.",
|
||||||
|
|
||||||
"worldedit.operation.affected.biome": "{0} biomes affected",
|
"worldedit.operation.affected.biome": "{0} biomes affected",
|
||||||
"worldedit.operation.affected.block": "{0} blocks affected",
|
"worldedit.operation.affected.block": "{0} blocks affected",
|
||||||
@ -214,5 +266,7 @@
|
|||||||
"worldedit.operation.affected.entity": "{0} entities affected",
|
"worldedit.operation.affected.entity": "{0} entities affected",
|
||||||
"worldedit.operation.deform.expression": "deformed using {0}",
|
"worldedit.operation.deform.expression": "deformed using {0}",
|
||||||
|
|
||||||
"worldedit.help.command-not-found": "The command '{0}' could not be found."
|
"worldedit.help.command-not-found": "The command '{0}' could not be found.",
|
||||||
|
"worldedit.help.no-subcommands": "'{0}' has no sub-commands. (Maybe '{1}' is for a parameter?)",
|
||||||
|
"worldedit.help.subcommand-not-found": "The sub-command '{0}' under '{1}' could not be found."
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user