summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/settings/commands/Afk.java
blob: 5136dd8d0100124e1f9d73c3b841b6a85890ce25 (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
package net.ess3.settings.commands;

import lombok.Data;
import lombok.EqualsAndHashCode;
import net.ess3.storage.Comment;
import net.ess3.storage.StorageObject;


@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 long 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 long 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;

	private boolean disableItemPickupWhileAfk = true;
}