Class PlayerHistoryData

java.lang.Object
me.confuser.banmanager.common.data.PlayerHistoryData

public class PlayerHistoryData extends Object
  • Constructor Details

    • PlayerHistoryData

      public PlayerHistoryData(PlayerData player, boolean logIp)
      Create a session history record. Join time is set to the current time when the session is created.
      Parameters:
      player - The player data
      logIp - Whether to record the IP address (false = ip will be null)
    • PlayerHistoryData

      public PlayerHistoryData(PlayerData player, me.confuser.banmanager.common.ipaddr.IPAddress ip, long join, long leave)
      Create a session history record with an explicit IP address and timestamps. Useful for importing data where the IP and timestamps are known.
      Parameters:
      player - The player data
      ip - The IP address to record (can be null)
      join - The join timestamp in seconds
      leave - The leave timestamp in seconds