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 ""; + } +}