47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package com.sekwah.advancedportals.core.tags.activation;
|
|
|
|
import com.sekwah.advancedportals.core.connector.containers.PlayerContainer;
|
|
import com.sekwah.advancedportals.core.registry.TagTarget;
|
|
import com.sekwah.advancedportals.core.util.Lang;
|
|
import com.sekwah.advancedportals.core.warphandler.ActivationData;
|
|
import com.sekwah.advancedportals.core.warphandler.Tag;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* The name of the destination or portal.
|
|
* <p>
|
|
* Most of the implementation of this tag is external, this is just to allow for the tag to be used.
|
|
* <p>
|
|
* Most tags shouldn't be like this unless they are to be paired with another tag.
|
|
*/
|
|
public class NameTag implements Tag.AutoComplete {
|
|
|
|
private final TagType[] tagTypes = new TagType[]{ TagType.PORTAL, TagType.DESTINATION };
|
|
|
|
@Override
|
|
public TagType[] getTagTypes() {
|
|
return tagTypes;
|
|
}
|
|
|
|
@Override
|
|
public String getName() {
|
|
return "name";
|
|
}
|
|
|
|
@Override
|
|
public String[] getAliases() {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public String description() {
|
|
return Lang.translate("tag.name.description");
|
|
}
|
|
|
|
@Override
|
|
public List<String> autoComplete(String argData) {
|
|
return null;
|
|
}
|
|
}
|