From 59611ac1d1da41d7fc6a77b1fc94328e3cb6e660 Mon Sep 17 00:00:00 2001 From: steev Date: Thu, 5 Dec 2024 09:29:55 +0100 Subject: [PATCH] added changelog handler class --- .../java/de/steev/bm/utils/Changelog.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/de/steev/bm/utils/Changelog.java diff --git a/src/main/java/de/steev/bm/utils/Changelog.java b/src/main/java/de/steev/bm/utils/Changelog.java new file mode 100644 index 0000000..3564c62 --- /dev/null +++ b/src/main/java/de/steev/bm/utils/Changelog.java @@ -0,0 +1,37 @@ +package de.steev.bm.utils; + +import de.steev.bm.Manager.GameManager; +import org.bukkit.entity.Player; + +public class Changelog { + private GameManager plugin; + + public Changelog(GameManager plugin) { + this.plugin = plugin; + } + + /** + * handles getting changelog and sending it to the player + * @param player the receiving player + */ + public void SendChangelog(Player player) { + 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 + */ + private boolean hasPlayerSeenChangelog(Player player) { + return false; + } + + /*** + * reads the set changlog file + * @return the resulting changelog as string + */ + private String createChangelog() { + return ""; + } +}