mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
package com.earth2me.essentials.settings.commands;
|
|
|
|
import com.earth2me.essentials.storage.Comment;
|
|
import com.earth2me.essentials.storage.StorageObject;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = false)
|
|
public class Afk implements StorageObject
|
|
{
|
|
@Comment(
|
|
{
|
|
"After this timeout in seconds, the user will be set as afk.",
|
|
"Set to -1 for no timeout."
|
|
})
|
|
private int autoAFK = 300;
|
|
@Comment(
|
|
{
|
|
"Auto-AFK Kick",
|
|
"After this timeout in seconds, the user will be kicked from the server.",
|
|
"Set to -1 for no timeout."
|
|
})
|
|
private int autoAFKKick = -1;
|
|
@Comment(
|
|
{
|
|
"Set this to true, if you want to freeze the player, if he is afk.",
|
|
"Other players or monsters can't push him out of afk mode then.",
|
|
"This will also enable temporary god mode for the afk player.",
|
|
"The player has to use the command /afk to leave the afk mode.",
|
|
"You have to add a message to your welcome message or help page,",
|
|
"since the player will not get a message, if he tries to move."
|
|
})
|
|
private boolean freezeAFKPlayers = false;
|
|
}
|