allow more than one author

This commit is contained in:
kashike
2018-08-21 09:09:48 -07:00
parent a028467e66
commit c4fdac9591
9 changed files with 50 additions and 40 deletions

View File

@@ -33,7 +33,7 @@ public @interface Plugin {
*
* @return the plugin's author, or empty if unknown
*/
String author() default "";
String[] authors() default "";
/**
* The dependencies required to load before this plugin.

View File

@@ -5,6 +5,7 @@ import com.velocitypowered.api.plugin.meta.PluginDependency;
import java.nio.file.Path;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.regex.Pattern;
@@ -37,12 +38,12 @@ public interface PluginDescription {
String getVersion();
/**
* Gets the author of the {@link Plugin} within this container.
* Gets the authors of the {@link Plugin} within this container.
*
* @return the plugin author
* @see Plugin#author()
* @return the plugin authors
* @see Plugin#authors()
*/
String getAuthor();
List<String> getAuthors();
/**
* Gets a {@link Collection} of all dependencies of the {@link Plugin} within