Added missing TeleportRequest class.
This commit is contained in:
parent
a5b34458c4
commit
093778f2fb
@ -1,11 +1,37 @@
|
|||||||
package de.craftinc.gates.util;
|
package de.craftinc.gates.util;
|
||||||
|
|
||||||
/**
|
import org.bukkit.Location;
|
||||||
* Created with IntelliJ IDEA.
|
import org.bukkit.entity.Player;
|
||||||
* User: tobi
|
|
||||||
* Date: 26.05.13
|
public class TeleportRequest
|
||||||
* Time: 14:28
|
{
|
||||||
* To change this template use File | Settings | File Templates.
|
private Player player;
|
||||||
*/
|
private Location destination;
|
||||||
public class TeleportRequest {
|
|
||||||
|
|
||||||
|
public TeleportRequest(Player player, Location destination)
|
||||||
|
{
|
||||||
|
if (player == null) {
|
||||||
|
throw new IllegalArgumentException("Player must not be null!");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (destination == null) {
|
||||||
|
throw new IllegalArgumentException("Destination must not be null");
|
||||||
|
}
|
||||||
|
|
||||||
|
this.player = player;
|
||||||
|
this.destination = destination;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Player getPlayer()
|
||||||
|
{
|
||||||
|
return player;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Location getDestination()
|
||||||
|
{
|
||||||
|
return destination;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user