Added PlayerKick (setReason, setLeaveMessage, setCancelled) and PlayerRespawn (setLocation)

This commit is contained in:
Forsaken
2011-02-04 16:02:49 +01:00
committed by Erik Broes
parent 8b9541be53
commit 836dc323d6
5 changed files with 147 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package org.bukkit.event.player;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public class PlayerRespawnEvent extends PlayerEvent {
private Location respawnLocation;
public PlayerRespawnEvent(Type type, Player respawnPlayer, Location respawnLocation) {
super(type, respawnPlayer);
this.respawnLocation = respawnLocation;
}
/**
* Gets the current respawn location
*
* @return Location current respawn location
*/
public Location getRespawnLocation() {
return this.respawnLocation;
}
/**
* Sets the new respawn location
*
* @param respawnLocation new location for the respawn
*/
public void setRespawnLocation(Location respawnLocation) {
this.respawnLocation = respawnLocation;
}
}