added changelog handler class

This commit is contained in:
steev 2024-12-05 09:29:55 +01:00
parent 7e759aace3
commit 59611ac1d1

View File

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