Record Class PlayerDataConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.playerdata.PlayerDataConfig
public record PlayerDataConfig(String recoveryLogPath, String recoveryLogName, String recoveryBinariesPath, int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay)
extends Record
Project Tachyon
Class PlayerDataConfig
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 24/04/2026
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerDataConfig(String recoveryLogPath, String recoveryLogName, String recoveryBinariesPath, int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay) Creates an instance of aPlayerDataConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedataAutoSaveDelayrecord component.intReturns the value of thedataLoadingCycleDelayrecord component.Returns the value of thedataLoadingKickMsgrecord component.intReturns the value of thedataLoadingMaxAttemptsrecord component.booleanReturns the value of theenableDataAutoSaverecord component.final booleanIndicates whether some other object is "equal to" this one.static PlayerDataConfigfromFile(@NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) final inthashCode()Returns a hash code value for this object.Returns the value of therecoveryBinariesPathrecord component.Returns the value of therecoveryLogNamerecord component.Returns the value of therecoveryLogPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerDataConfig
public PlayerDataConfig(String recoveryLogPath, String recoveryLogName, String recoveryBinariesPath, int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay) Creates an instance of aPlayerDataConfigrecord class.- Parameters:
recoveryLogPath- the value for therecoveryLogPathrecord componentrecoveryLogName- the value for therecoveryLogNamerecord componentrecoveryBinariesPath- the value for therecoveryBinariesPathrecord componentdataLoadingMaxAttempts- the value for thedataLoadingMaxAttemptsrecord componentdataLoadingCycleDelay- the value for thedataLoadingCycleDelayrecord componentdataLoadingKickMsg- the value for thedataLoadingKickMsgrecord componentenableDataAutoSave- the value for theenableDataAutoSaverecord componentdataAutoSaveDelay- the value for thedataAutoSaveDelayrecord component
-
-
Method Details
-
fromFile
public static PlayerDataConfig fromFile(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
recoveryLogPath
Returns the value of therecoveryLogPathrecord component.- Returns:
- the value of the
recoveryLogPathrecord component
-
recoveryLogName
Returns the value of therecoveryLogNamerecord component.- Returns:
- the value of the
recoveryLogNamerecord component
-
recoveryBinariesPath
Returns the value of therecoveryBinariesPathrecord component.- Returns:
- the value of the
recoveryBinariesPathrecord component
-
dataLoadingMaxAttempts
public int dataLoadingMaxAttempts()Returns the value of thedataLoadingMaxAttemptsrecord component.- Returns:
- the value of the
dataLoadingMaxAttemptsrecord component
-
dataLoadingCycleDelay
public int dataLoadingCycleDelay()Returns the value of thedataLoadingCycleDelayrecord component.- Returns:
- the value of the
dataLoadingCycleDelayrecord component
-
dataLoadingKickMsg
Returns the value of thedataLoadingKickMsgrecord component.- Returns:
- the value of the
dataLoadingKickMsgrecord component
-
enableDataAutoSave
public boolean enableDataAutoSave()Returns the value of theenableDataAutoSaverecord component.- Returns:
- the value of the
enableDataAutoSaverecord component
-
dataAutoSaveDelay
public int dataAutoSaveDelay()Returns the value of thedataAutoSaveDelayrecord component.- Returns:
- the value of the
dataAutoSaveDelayrecord component
-