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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
package net.ess3.api;
import net.ess3.economy.Trade;
import net.ess3.utils.Target;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
public interface ITeleport
{
/**
* Teleport to a location now
*
* @param loc - location to send to
* @param cooldown - To check cooldown
* @param cause - Why was the send caused? Use a {@link TeleportCause}
* @throws Exception
*/
void now(Location loc, boolean cooldown, TeleportCause cause) throws Exception;
/**
*
* @param entity
* @param cooldown
* @param cause
* @throws Exception
*/
void now(Entity entity, boolean cooldown, TeleportCause cause) throws Exception;
/**
*
* @param target
* @param cause
* @throws Exception
*/
void now(final Target target, final TeleportCause cause) throws Exception;
/**
*
* @param chargeFor
* @throws Exception
*/
void back(Trade chargeFor) throws Exception;
/**
*
* @param bed
* @param charge
* @param teleportCause
* @throws Exception
*/
void teleport(Location bed, Trade charge, TeleportCause teleportCause) throws Exception;
/**
*
* @param entity
* @param chargeFor
* @param cause
* @throws Exception
*/
void teleport(Entity entity, Trade chargeFor, TeleportCause cause) throws Exception;
/**
*
* @param otherUser
* @param chargeFor
* @param cause
* @throws Exception
*/
void teleportToMe(IUser otherUser, Trade chargeFor, TeleportCause cause) throws Exception;
/**
*
* @param loc
* @param chargeFor
* @throws Exception
*/
void home(Location loc, Trade chargeFor) throws Exception;
/**
*
* @param charge
* @param teleportCause
* @throws Exception
*/
void respawn(Trade charge, TeleportCause teleportCause) throws Exception;
/**
*
* @throws Exception
*/
void back() throws Exception;
/**
*
* @param name
* @param charge
* @param teleportCause
* @throws Exception
*/
void warp(String name, Trade charge, TeleportCause teleportCause) throws Exception;
}
|