diff --git a/pom.xml b/pom.xml
index 84ef005..c0050bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
de.steev.bm
BetterMinecraft
- stable
+ 1.2.2
17
@@ -25,7 +25,7 @@
org.spigotmc
spigot-api
- 1.20.1-R0.1-SNAPSHOT
+ 1.21.1-R0.1-SNAPSHOT
provided
diff --git a/src/main/java/de/steev/bm/BetterMinecraft.java b/src/main/java/de/steev/bm/BetterMinecraft.java
index c84d3c3..ab41226 100644
--- a/src/main/java/de/steev/bm/BetterMinecraft.java
+++ b/src/main/java/de/steev/bm/BetterMinecraft.java
@@ -63,10 +63,9 @@ public class BetterMinecraft extends JavaPlugin implements Listener {
UUID uuid = p.getUniqueId();
try {
- // prevent this allways resetting the job count
if (this.playerData.readBooleanFromConfig(uuid + "." + Version + ".read")) {
p.sendMessage("================= Better Minecraft " + Version + " =================");
- p.sendMessage("Command: /back eingefügt");
+ p.sendMessage("Amboss Kostengrenze entfernt");
p.sendMessage("=====================================================");
this.playerData.writeStringToConfig(uuid + ".name", p.getName());
diff --git a/src/main/java/de/steev/bm/utils/Changelog.java b/src/main/java/de/steev/bm/utils/Changelog.java
index 3564c62..7f53939 100644
--- a/src/main/java/de/steev/bm/utils/Changelog.java
+++ b/src/main/java/de/steev/bm/utils/Changelog.java
@@ -3,6 +3,11 @@ package de.steev.bm.utils;
import de.steev.bm.Manager.GameManager;
import org.bukkit.entity.Player;
+enum ChangelogType {
+ SystemChangeLog,
+ CustomChangelog
+}
+
public class Changelog {
private GameManager plugin;
@@ -15,15 +20,18 @@ public class Changelog {
* @param player the receiving player
*/
public void SendChangelog(Player player) {
- player.sendMessage(createChangelog());
+ //player.sendMessage(createChangelog());
}
/**
* handles checking the playerdata if a player already saw the changelog
* @param player the player to lookup
- * @return boolean which tells whether or not a player has seen the changelog
+ * @return boolean which tells whether a player has seen the changelog or not
*/
- private boolean hasPlayerSeenChangelog(Player player) {
+ private boolean hasPlayerSeenChangelog(ChangelogType changelogType, Player player) {
+ // TODO: read from header what version the changelog is for
+ // TODO: read from playerdata.yml if the player has seen the changelog for that type
+ // TODO: return found result
return false;
}
@@ -31,7 +39,22 @@ public class Changelog {
* reads the set changlog file
* @return the resulting changelog as string
*/
- private String createChangelog() {
+ private String createChangelog(ChangelogType changelogType) {
+ // TODO: FETCH from
+
+ /*switch (changelogType) {
+ case SystemChangeLog:
+ // TODO: get changelog url from config
+ // TODO: fetch version changelog from git
+ // TODO: proccess changelog
+ break;
+ case CustomChangelog:
+ // TODO: fetch changes from changes.txt found in plugin folder or from configured destination
+ // TODO: proccess changelog
+ break;
+
+ }*/
+
return "";
}
}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
new file mode 100644
index 0000000..04a95e9
--- /dev/null
+++ b/src/main/resources/config.yml
@@ -0,0 +1,13 @@
+# changelog
+system_changelog: true
+system_changelog_location: https://git.slpnetwork.de/Steev/betterminecraft/src/branch/main/changelog.txt
+custom_changelog: true
+custom_changelog_location: custom_changelog.txt
+
+# features
+changelog: true # if this is toggled the whole changelog system is enabled or disabled
+improved_bed: true # toggles whether the night should be skipped when half the server players sleep
+custom_drops: false # toggles if custom drops should be enabled
+custom_recipes: false # toggles if custom recipes should be enabled
+replanting: true # toggles the right click replant feature
+back_command: true # toggles the back to death point feature
\ No newline at end of file
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 3515651..73d8a97 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,7 +1,7 @@
name: BetterMinecraft
main: de.steev.bm.BetterMinecraft
-version: 1.0
-api-version: 1.17
+version: 1.2.2
+api-version: 1.21
commands:
back:
description: "teleports players back to their deathpoint"
\ No newline at end of file