Skip to content

Commit ff7050c

Browse files
committed
fix: Add some paper plugin.yaml fields
1 parent 23a2d75 commit ff7050c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

src/main/kotlin/meta/PluginMetaYaml.kt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ internal data class PluginMetaYaml(
3232
val author: String? = null,
3333

3434
/**
35-
* Allows to list multiple authors, if it is a collaborative project.
35+
* Allows listing multiple authors if it is a collaborative project.
3636
* @see author
3737
*/
3838
val authors: List<String>? = null,
3939

40+
/** The contributors to the plugin that aren't the managing author(s). */
41+
val contributors: List<String>? = null,
42+
4043
/** The plugin's or author's website. */
4144
val website: String? = null,
4245

@@ -49,14 +52,26 @@ internal data class PluginMetaYaml(
4952
/** A list of plugins that should be loaded after your plugin. */
5053
val loadbefore: List<String>? = null,
5154

55+
/**
56+
* This can be used to tell the server that this plugin will provide the functionality
57+
* of some library or other plugin (like an alias system).
58+
* Plugins that (soft)depend on the other plugin will treat your plugin
59+
* as if the other plugin exists when resolving dependencies or using `PluginManager#getPlugin(String)`.
60+
*/
61+
val provides: List<String>? = null,
62+
5263
/** A list of libraries your plugin needs which can be loaded from Maven Central. */
5364
val libraries: List<String>? = null,
5465

5566
/** The name of a command the plugin wishes to register, as well as an optional list of command attributes. */
5667
val commands: Map<String, PluginCommand>? = null,
5768

5869
/** Permission that the plugin wishes to register. */
59-
val permissions: Map<String, PluginPermission>? = null
70+
val permissions: Map<String, PluginPermission>? = null,
71+
72+
/** The default value that permissions that don't have a `default` specified will have. */
73+
@SerialName("default-permission")
74+
val defaultPermission: String? = null,
6075
) : java.io.Serializable
6176

6277
@Serializable

0 commit comments

Comments
 (0)