com.cliffblaster.game.api.event
Class PlayerSpawnEvent

java.lang.Object
  extended by com.cliffblaster.game.api.event.Event
      extended by com.cliffblaster.game.api.event.PlayerEvent
          extended by com.cliffblaster.game.api.event.PlayerSpawnEvent

public class PlayerSpawnEvent
extends PlayerEvent


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cliffblaster.game.api.event.Event
Event.Priority, Event.Type
 
Field Summary
 Packet5PlayerSpawn packet
           
 
Fields inherited from class com.cliffblaster.game.api.event.Event
evtType
 
Constructor Summary
PlayerSpawnEvent(ServerHandler handler, Packet5PlayerSpawn spawn)
           
 
Method Summary
 void cancel()
          Deprecated. Do not use. Throws RuntimeException as such events can not to be cancelled. (You can't force a player to stay!)
 
Methods inherited from class com.cliffblaster.game.api.event.PlayerEvent
getHandler
 
Methods inherited from class com.cliffblaster.game.api.event.Event
getType, isCancelled, unCancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packet

public final Packet5PlayerSpawn packet
Constructor Detail

PlayerSpawnEvent

public PlayerSpawnEvent(ServerHandler handler,
                        Packet5PlayerSpawn spawn)
Method Detail

cancel

@Deprecated
public void cancel()
Deprecated. Do not use. Throws RuntimeException as such events can not to be cancelled. (You can't force a player to stay!)

Description copied from class: Event
Sets the event as cancelled. The event will not continue on the server and will be reverted, unless a subsequent plug-in calls Event.unCancel() on the event.

Overrides:
cancel in class Event