Add Bukkit api-version, closes #3

This commit is contained in:
Minecrell 2018-07-24 14:09:46 +02:00
parent e7ed8a63ad
commit fd34d311e1
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,9 @@ bukkit {
// Plugin main class (required)
main = 'com.example.testplugin.TestPlugin'
// API version (should be set for 1.13+)
apiVersion = '1.13'
// Other possible properties from plugin.yml (optional)
load = 'STARTUP' // or 'POSTWORLD'
authors = ['Notch', 'Notch2']
@ -86,6 +89,9 @@ bukkit {
// Plugin main class (required)
main = "com.example.testplugin.TestPlugin"
// API version (should be set for 1.13+)
apiVersion = "1.13"
// Other possible properties from plugin.yml (optional)
load = BukkitPluginDescription.PluginLoadOrder.STARTUP // or POSTWORLD
authors = listOf("Notch", "Notch2")

View File

@ -31,6 +31,7 @@ import java.io.Serializable
class BukkitPluginDescription(project: Project) : Serializable {
@JsonProperty("api-version") var apiVersion: String? = null
var name: String? = null
var version: String? = null
var main: String? = null