Class HoneypotPlayerHistoryObject
java.lang.Object
org.reprogle.honeypot.common.storageproviders.HoneypotPlayerHistoryObject
A class representing a player history entry.
Includes methods for getting all values of a Honeypot history entry, which can be returned via the HoneypotPlayerHistoryManager class
-
Constructor Summary
ConstructorsConstructorDescriptionHoneypotPlayerHistoryObject(String dateTime, String player, String UUID, HoneypotBlockObject hbo, String type) Constructor for creating a history entryHoneypotPlayerHistoryObject(String dateTime, org.bukkit.entity.Player player, HoneypotBlockObject hbo, String type) Constructor for creating a history entry -
Method Summary
-
Constructor Details
-
HoneypotPlayerHistoryObject
public HoneypotPlayerHistoryObject(String dateTime, String player, String UUID, HoneypotBlockObject hbo, String type) Constructor for creating a history entry- Parameters:
dateTime- The Date and Time in string format. Really need to improve this to have standards but oh wellplayer- The player's nameUUID- The UUID of the playerhbo- The HoneypotBlockObject they broke
-
HoneypotPlayerHistoryObject
public HoneypotPlayerHistoryObject(String dateTime, org.bukkit.entity.Player player, HoneypotBlockObject hbo, String type) Constructor for creating a history entry- Parameters:
dateTime- The Date and Time in string format. Really need to improve this to have standards but oh wellplayer- The player objecthbo- The HoneypotBlockObject they broke
-
-
Method Details
-
getDateTime
Get the date and time of the history entry- Returns:
- Date and Time, string formatted and in GMT +0:00
-
getPlayer
Get the player's name- Returns:
- Player name
-
getUUID
Get the player's UUID- Returns:
- UUID
-
getHoneypot
Get the Honeypot they broke- Returns:
HoneypotBlockObject
-
getType
Get the type of break
-