summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/settings/commands/Teleport.java
blob: 1b0f6713e5dff2570eabbc87f152bd53297b92c6 (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
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.\n"
			 + "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\n"
			 + "This will also prevent that the player can attack other players")
	private long invulnerability = 0;

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