From 98ff4cdd8eb861f4d0f502b9d7af84cb66aeae18 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:21:04 -0400 Subject: [PATCH 01/11] Update maven.yml --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 9ab642fc4e852df4b6c7c9ec1e24cbae56e3cd5f Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:23:22 -0400 Subject: [PATCH 02/11] java 16 updated pom.xml from java 8 to java 16 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fa4ed24..aac4c98 100644 --- a/pom.xml +++ b/pom.xml @@ -8,8 +8,8 @@ 1.0.0 - 1.8 - 1.8 + 16 + 16 UTF-8 From 8f2709dad826b80c558d16036e324b90d4512a25 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:24:03 -0400 Subject: [PATCH 03/11] RC updated pom.xml rc 28 to rc 32 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aac4c98..f7dd5bd 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ com.github.Slimefun Slimefun4 - RC-28 + RC-32 provided From 850b3be14727226882833837b9fd2472c7096e9b Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:24:47 -0400 Subject: [PATCH 04/11] SPIGOT updated spigot from 1.17.1 to 1.19 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f7dd5bd..fe07319 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ org.spigotmc spigot-api - 1.17.1-R0.1-SNAPSHOT + 1.19-R0.1-SNAPSHOT provided From a282d7e23c5c8f1fa8c84f4caf629850214bcada Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:25:31 -0400 Subject: [PATCH 05/11] minimum version changed minimum plugin version from 1.14 to 1.16 as slimefun is planning to drop 1.14 and 1.15 support --- src/main/resources/plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a89550a..4f1c127 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -18,7 +18,7 @@ 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: From 86a86331515634987076cb43b7df26761ecaaeb7 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:26:28 -0400 Subject: [PATCH 06/11] cs corelib removed cs corelib from bug report --- .github/ISSUE_TEMPLATE/bug-report.md | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 8a8e25d..1b68713 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -28,6 +28,5 @@ assignees: '' - Minecraft Version: - - CS-CoreLib Version: - Slimefun Version: - Plugin Version: From 65ac3cec115e27e5b4e49de3958bcfbb5fa51bbf Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:31:09 -0400 Subject: [PATCH 07/11] adding an auto updater --- .../java/me/CHANGEME/slimefunaddon/ExampleAddon.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java b/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java index 9fb4250..4f15bce 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 } /* From ab1b988e6e209695e857620da60c560ad221822e Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:33:37 -0400 Subject: [PATCH 08/11] update the bug tracker --- src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java b/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java index 4f15bce..97ec41f 100644 --- a/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java +++ b/src/main/java/me/CHANGEME/slimefunaddon/ExampleAddon.java @@ -75,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 From a7aa10335cbc9dce0e2b6134e52918ef7551c937 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:37:42 -0400 Subject: [PATCH 09/11] depend and soft depend reformat depend and added a soft depend template --- src/main/resources/plugin.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 4f1c127..0abf31d 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -21,5 +21,7 @@ version: ${project.version} 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: [] From 2911878766661ec49285d254a7a4e3818c8a7222 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:40:46 -0400 Subject: [PATCH 10/11] bug report note added a note to please make sure they are using the latest dev build and not an outdated ,unoffical or rc build --- .github/ISSUE_TEMPLATE/bug-report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 1b68713..608709b 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -26,7 +26,7 @@ assignees: '' - - Minecraft Version: + - - Slimefun Version: - Plugin Version: From ea32dc68a8f8984b0deae9dcf1c55c9d406e2394 Mon Sep 17 00:00:00 2001 From: JasperChaseTOQ <103849596+JasperChaseTOQ@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:43:10 -0400 Subject: [PATCH 11/11] grammar correction whoops --- .github/ISSUE_TEMPLATE/bug-report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md index 608709b..46d5283 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -27,6 +27,6 @@ assignees: '' - Minecraft Version: - - + - - Slimefun Version: - Plugin Version: