Class HoneypotPlayerHistoryObject

java.lang.Object
org.reprogle.honeypot.common.storageproviders.HoneypotPlayerHistoryObject

public class HoneypotPlayerHistoryObject extends Object
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 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 well
      player - The player's name
      UUID - The UUID of the player
      hbo - 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 well
      player - The player object
      hbo - The HoneypotBlockObject they broke
  • Method Details

    • getDateTime

      public String getDateTime()
      Get the date and time of the history entry
      Returns:
      Date and Time, string formatted and in GMT +0:00
    • getPlayer

      public String getPlayer()
      Get the player's name
      Returns:
      Player name
    • getUUID

      public String getUUID()
      Get the player's UUID
      Returns:
      UUID
    • getHoneypot

      public HoneypotBlockObject getHoneypot()
      Get the Honeypot they broke
      Returns:
      HoneypotBlockObject
    • getType

      public String getType()
      Get the type of break