added changelog handler class
This commit is contained in:
parent
7e759aace3
commit
59611ac1d1
37
src/main/java/de/steev/bm/utils/Changelog.java
Normal file
37
src/main/java/de/steev/bm/utils/Changelog.java
Normal 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 "";
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user