Class PlayerHistoryData
java.lang.Object
me.confuser.banmanager.common.data.PlayerHistoryData
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerHistoryData(PlayerData player, boolean logIp) Create a session history record.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. -
Method Summary
-
Constructor Details
-
PlayerHistoryData
Create a session history record. Join time is set to the current time when the session is created.- Parameters:
player- The player datalogIp- 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 dataip- The IP address to record (can be null)join- The join timestamp in secondsleave- The leave timestamp in seconds
-