summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/settings/commands/Teleport.java
blob: 04be7a24ebf0f17a44914051cc3b45b08438f915 (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 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 = 0;
	@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;
	}
}