diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
index 8a8e25d..46d5283 100644
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ b/.github/ISSUE_TEMPLATE/bug-report.md
@@ -26,8 +26,7 @@ assignees: ''
-
- Minecraft Version:
- - CS-CoreLib Version:
+ -
- Slimefun Version:
- Plugin Version:
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index d96c43f..e53b3a9 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,9 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v2.3.3
- - name: Set up JDK 1.8
+ - name: Set up JDK 16
uses: actions/setup-java@v1.4.3
with:
- java-version: 1.8
+ java-version: 16
- name: Build with Maven
run: mvn package --file pom.xml
diff --git a/pom.xml b/pom.xml
index fa4ed24..fe07319 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,8 +8,8 @@
1.0.0
- 1.8
- 1.8
+ 16
+ 16
UTF-8
@@ -50,14 +50,14 @@
org.spigotmc
spigot-api
- 1.17.1-R0.1-SNAPSHOT
+ 1.19-R0.1-SNAPSHOT
provided
com.github.Slimefun
Slimefun4
- RC-28
+ RC-32
provided
diff --git a/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java b/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java
index 9fb4250..97ec41f 100644
--- a/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java
+++ b/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java
@@ -1,5 +1,6 @@
package me.CHANGEME.slimefunaddon;
+import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
@@ -13,15 +14,21 @@
import io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config;
import io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack;
+import java.io.File;
+
public class ExampleAddon extends JavaPlugin implements SlimefunAddon {
@Override
public void onEnable() {
// Read something from your config.yml
Config cfg = new Config(this);
+ if (!new File(getDataFolder(), "config.yml").exists()) {
+ saveDefaultConfig();
+ }
+ //Auto updater for https://thebusybiscuit.github.io/builds/
+ if (getConfig().getBoolean("options.auto-update") && getDescription().getVersion().startsWith("DEV - ")) {
+ new GitHubBuildsUpdater(this, getFile(), "CHANGEME/ExampleAddon/master").start();
- if (cfg.getBoolean("options.auto-update")) {
- // You could start an Auto-Updater for example
}
/*
@@ -68,8 +75,8 @@ public void onDisable() {
@Override
public String getBugTrackerURL() {
- // You can return a link to your Bug Tracker instead of null here
- return null;
+ //adds a link for people to report any bugs/errors/issues to your addon's github page
+ return "https://github.com/CHANGEME/ExampleAddon/issues";
}
@Override
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index a89550a..0abf31d 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -18,8 +18,10 @@ website: https://github.com/Slimefun/Addon-Template
version: ${project.version}
## This is the minimum minecraft version required to run your plugin.
-api-version: 1.14
+api-version: 1.16
## This is required and marks Slimefun as a plugin dependency.
-depend:
-- Slimefun
\ No newline at end of file
+depend: [Slimefun]
+
+## This is Optional and can be used to mark a plugin for possible integration and compatibility.
+softdepend: []