summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/settings/commands/Teleport.java
blob: ffa5764102fbf3e0e23edd8762f2dcde4f4d6cea (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
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 Teleport implements StorageObject
{
	@Comment(
			{
					"Set timeout in seconds for players to accept tpa before request is cancelled.", "Set to 0 for no timeout."
			})
	private int requestTimeout = 120;
	@Comment({"Cancels a request made by tpa / tphere on world change to prevent cross world tp"})
	private boolean cancelRequestsOnWorldChange = false;
	@Comment(
			{
					"The delay, in seconds, a player can't be attacked by other players after he has been teleported by a command",
					"This will also prevent that the player can attack other players"
			})
	private long invulnerability = 0;

	public long getInvulnerability()
	{
		return invulnerability * 1000;
	}
}