From df18fcef92e1896e233d8cfa190cf076c11e7f46 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 25 Aug 2021 11:16:06 +0100 Subject: [PATCH] Fix #1250 --- .../parser/pattern/ClipboardPatternParser.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/pattern/ClipboardPatternParser.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/pattern/ClipboardPatternParser.java index e6cafeb75..101adbc2e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/pattern/ClipboardPatternParser.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/pattern/ClipboardPatternParser.java @@ -20,6 +20,8 @@ package com.sk89q.worldedit.extension.factory.parser.pattern; import com.fastasyncworldedit.core.configuration.Caption; +import com.fastasyncworldedit.core.extension.factory.parser.AliasedParser; +import com.google.common.collect.ImmutableList; import com.sk89q.worldedit.EmptyClipboardException; import com.sk89q.worldedit.LocalSession; import com.sk89q.worldedit.WorldEdit; @@ -32,10 +34,15 @@ import com.sk89q.worldedit.internal.registry.InputParser; import com.sk89q.worldedit.math.BlockVector3; import com.sk89q.worldedit.session.ClipboardHolder; +import java.util.List; import java.util.Locale; import java.util.stream.Stream; -public class ClipboardPatternParser extends InputParser { +public class ClipboardPatternParser extends InputParser implements AliasedParser { + + //FAWE start - aliased + private final List aliases = ImmutableList.of("#clipboard", "#clipboard@"); + //FAWE end public ClipboardPatternParser(WorldEdit worldEdit) { super(worldEdit); @@ -105,4 +112,11 @@ public class ClipboardPatternParser extends InputParser { } } + //FAWE start - aliased + @Override + public List getMatchedAliases() { + return aliases; + } + //FAWE end + }