mirror of
https://github.com/plexusorg/plugin-yml.git
synced 2024-12-22 16:25:06 +00:00
Add Bukkit api-version, closes #3
This commit is contained in:
parent
e7ed8a63ad
commit
fd34d311e1
2 changed files with 7 additions and 0 deletions
|
@ -36,6 +36,9 @@ bukkit {
|
||||||
// Plugin main class (required)
|
// Plugin main class (required)
|
||||||
main = 'com.example.testplugin.TestPlugin'
|
main = 'com.example.testplugin.TestPlugin'
|
||||||
|
|
||||||
|
// API version (should be set for 1.13+)
|
||||||
|
apiVersion = '1.13'
|
||||||
|
|
||||||
// Other possible properties from plugin.yml (optional)
|
// Other possible properties from plugin.yml (optional)
|
||||||
load = 'STARTUP' // or 'POSTWORLD'
|
load = 'STARTUP' // or 'POSTWORLD'
|
||||||
authors = ['Notch', 'Notch2']
|
authors = ['Notch', 'Notch2']
|
||||||
|
@ -86,6 +89,9 @@ bukkit {
|
||||||
// Plugin main class (required)
|
// Plugin main class (required)
|
||||||
main = "com.example.testplugin.TestPlugin"
|
main = "com.example.testplugin.TestPlugin"
|
||||||
|
|
||||||
|
// API version (should be set for 1.13+)
|
||||||
|
apiVersion = "1.13"
|
||||||
|
|
||||||
// Other possible properties from plugin.yml (optional)
|
// Other possible properties from plugin.yml (optional)
|
||||||
load = BukkitPluginDescription.PluginLoadOrder.STARTUP // or POSTWORLD
|
load = BukkitPluginDescription.PluginLoadOrder.STARTUP // or POSTWORLD
|
||||||
authors = listOf("Notch", "Notch2")
|
authors = listOf("Notch", "Notch2")
|
||||||
|
|
|
@ -31,6 +31,7 @@ import java.io.Serializable
|
||||||
|
|
||||||
class BukkitPluginDescription(project: Project) : Serializable {
|
class BukkitPluginDescription(project: Project) : Serializable {
|
||||||
|
|
||||||
|
@JsonProperty("api-version") var apiVersion: String? = null
|
||||||
var name: String? = null
|
var name: String? = null
|
||||||
var version: String? = null
|
var version: String? = null
|
||||||
var main: String? = null
|
var main: String? = null
|
||||||
|
|
Loading…
Reference in a new issue