3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Update Existing pattern usage

Dieser Commit ist enthalten in:
Jesse Boyd 2018-08-16 00:14:03 +10:00
Ursprung 7ed96ec358
Commit 19125bee5f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 59F1DE6293AF6E1F

Datei anzeigen

@ -48,7 +48,9 @@ public class PatternCommands extends MethodCommands {
@Command(
aliases = {"#existing", "#*", "*", ".*"},
desc = "Use the block that is already there")
desc = "Use the block that is already there",
usage = "[properties]"
)
public Pattern existing(Extent extent, @Optional String properties) { // TODO FIXME , @Optional String properties
if (properties == null) return new ExistingPattern(extent);
return new PropertyPattern(extent).addRegex(".*[" + properties + "]");