com.aranai.dungeonator.event
Class DCommandEvent

java.lang.Object
  extended by com.aranai.dungeonator.event.DCommandEvent

public class DCommandEvent
extends java.lang.Object

The Class DCommandEvent. Provides a standard set of attributes associated with Dungeonator command input.


Field Summary
private  java.lang.String[] args
          Additional arguments.
private  org.bukkit.Chunk chunk
          The chunk in which the player is located.
private  java.lang.String cmd
          The command.
private  org.bukkit.entity.Player player
          The player who triggered the command.
 
Constructor Summary
DCommandEvent(org.bukkit.entity.Player p, java.lang.String cmd, java.lang.String[] args)
          Instantiates a new DCommandEvent.
 
Method Summary
 java.lang.String[] getArgs()
          Gets the args.
 org.bukkit.Chunk getChunk()
          Gets the chunk.
 java.lang.String getCmd()
          Gets the command.
 org.bukkit.entity.Player getPlayer()
          Gets the player.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

private org.bukkit.entity.Player player
The player who triggered the command.


cmd

private java.lang.String cmd
The command.


args

private java.lang.String[] args
Additional arguments.


chunk

private org.bukkit.Chunk chunk
The chunk in which the player is located.

Constructor Detail

DCommandEvent

public DCommandEvent(org.bukkit.entity.Player p,
                     java.lang.String cmd,
                     java.lang.String[] args)
Instantiates a new DCommandEvent.

Parameters:
p - the player who triggered the command
cmd - the command
args - additional arguments
Method Detail

getPlayer

public org.bukkit.entity.Player getPlayer()
Gets the player.

Returns:
the player

getCmd

public java.lang.String getCmd()
Gets the command.

Returns:
the command

getArgs

public java.lang.String[] getArgs()
Gets the args.

Returns:
the args

getChunk

public org.bukkit.Chunk getChunk()
Gets the chunk.

Returns:
the chunk