Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Updated for 5.4.5.
Dieser Commit ist enthalten in:
Ursprung
14e283a1e9
Commit
d198961e12
@ -1,3 +1,6 @@
|
|||||||
|
5.4.5:
|
||||||
|
- Fixed minor check issue with //center.
|
||||||
|
|
||||||
5.4.4:
|
5.4.4:
|
||||||
- Added official support for Minecraft 1.4.
|
- Added official support for Minecraft 1.4.
|
||||||
- Added support for 4096 ID blocks (theoretically) in snapshots.
|
- Added support for 4096 ID blocks (theoretically) in snapshots.
|
||||||
|
@ -49,12 +49,12 @@ import com.sk89q.worldedit.regions.RegionOperationException;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Region related commands.
|
* Region related commands.
|
||||||
*
|
*
|
||||||
* @author sk89q
|
* @author sk89q
|
||||||
*/
|
*/
|
||||||
public class RegionCommands {
|
public class RegionCommands {
|
||||||
private final WorldEdit we;
|
private final WorldEdit we;
|
||||||
|
|
||||||
public RegionCommands(WorldEdit we) {
|
public RegionCommands(WorldEdit we) {
|
||||||
this.we = we;
|
this.we = we;
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ public class RegionCommands {
|
|||||||
@Logging(REGION)
|
@Logging(REGION)
|
||||||
public void replace(CommandContext args, LocalSession session, LocalPlayer player,
|
public void replace(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
|
|
||||||
Set<BaseBlock> from;
|
Set<BaseBlock> from;
|
||||||
Pattern to;
|
Pattern to;
|
||||||
if (args.argsLength() == 1) {
|
if (args.argsLength() == 1) {
|
||||||
@ -151,6 +151,7 @@ public class RegionCommands {
|
|||||||
min = 1,
|
min = 1,
|
||||||
max = 1
|
max = 1
|
||||||
)
|
)
|
||||||
|
@CommandPermissions("worldedit.region.center")
|
||||||
public void center(CommandContext args, LocalSession session, LocalPlayer player,
|
public void center(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
Pattern pattern = we.getBlockPattern(player, args.getString(0));
|
Pattern pattern = we.getBlockPattern(player, args.getString(0));
|
||||||
@ -211,7 +212,7 @@ public class RegionCommands {
|
|||||||
@Logging(REGION)
|
@Logging(REGION)
|
||||||
public void faces(CommandContext args, LocalSession session, LocalPlayer player,
|
public void faces(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
|
|
||||||
Pattern pattern = we.getBlockPattern(player, args.getString(0));
|
Pattern pattern = we.getBlockPattern(player, args.getString(0));
|
||||||
int affected;
|
int affected;
|
||||||
if (pattern instanceof SingleBlockPattern) {
|
if (pattern instanceof SingleBlockPattern) {
|
||||||
@ -238,7 +239,7 @@ public class RegionCommands {
|
|||||||
@Logging(REGION)
|
@Logging(REGION)
|
||||||
public void smooth(CommandContext args, LocalSession session, LocalPlayer player,
|
public void smooth(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
|
|
||||||
int iterations = 1;
|
int iterations = 1;
|
||||||
if (args.argsLength() > 0) {
|
if (args.argsLength() > 0) {
|
||||||
iterations = args.getInteger(0);
|
iterations = args.getInteger(0);
|
||||||
@ -356,7 +357,7 @@ public class RegionCommands {
|
|||||||
@Logging(REGION)
|
@Logging(REGION)
|
||||||
public void regenerateChunk(CommandContext args, LocalSession session, LocalPlayer player,
|
public void regenerateChunk(CommandContext args, LocalSession session, LocalPlayer player,
|
||||||
EditSession editSession) throws WorldEditException {
|
EditSession editSession) throws WorldEditException {
|
||||||
|
|
||||||
Region region = session.getSelection(player.getWorld());
|
Region region = session.getSelection(player.getWorld());
|
||||||
Mask mask = session.getMask();
|
Mask mask = session.getMask();
|
||||||
session.setMask(null);
|
session.setMask(null);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren