mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Update Existing pattern usage
This commit is contained in:
parent
7ed96ec358
commit
19125bee5f
@ -48,7 +48,9 @@ public class PatternCommands extends MethodCommands {
|
|||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
aliases = {"#existing", "#*", "*", ".*"},
|
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
|
public Pattern existing(Extent extent, @Optional String properties) { // TODO FIXME , @Optional String properties
|
||||||
if (properties == null) return new ExistingPattern(extent);
|
if (properties == null) return new ExistingPattern(extent);
|
||||||
return new PropertyPattern(extent).addRegex(".*[" + properties + "]");
|
return new PropertyPattern(extent).addRegex(".*[" + properties + "]");
|
||||||
|
Loading…
Reference in New Issue
Block a user