3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-07 03:50:06 +01:00
Dieser Commit ist enthalten in:
dordsor21 2021-08-25 11:16:06 +01:00
Ursprung 46c96b45fc
Commit df18fcef92
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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<Pattern> {
public class ClipboardPatternParser extends InputParser<Pattern> implements AliasedParser {
//FAWE start - aliased
private final List<String> aliases = ImmutableList.of("#clipboard", "#clipboard@");
//FAWE end
public ClipboardPatternParser(WorldEdit worldEdit) {
super(worldEdit);
@ -105,4 +112,11 @@ public class ClipboardPatternParser extends InputParser<Pattern> {
}
}
//FAWE start - aliased
@Override
public List<String> getMatchedAliases() {
return aliases;
}
//FAWE end
}