summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/settings/commands/Afk.java
blob: 80cae7e8a4880b1e02e9fa5418adb0716447149a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
}