Added events...

This commit is contained in:
Chiss 2013-08-29 16:16:22 +10:00
parent 8559e77a24
commit a198d0d3cb
2 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,45 @@
package nautilus.game.arcade.kit.perks.event;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PerkBlockGrabEvent extends Event
{
private static final HandlerList handlers = new HandlerList();
private Player _player;
private int _id;
private byte _data;
public PerkBlockGrabEvent(Player player, int id, byte data)
{
_player = player;
_id = id;
_data = data;
}
public HandlerList getHandlers()
{
return handlers;
}
public static HandlerList getHandlerList()
{
return handlers;
}
public Player GetPlayer()
{
return _player;
}
public int GetId()
{
return _id;
}
public byte GetData()
{
return _data;
}
}

View File

@ -0,0 +1,31 @@
package nautilus.game.arcade.kit.perks.event;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
public class PerkBlockThrowEvent extends Event
{
private static final HandlerList handlers = new HandlerList();
private Player _player;
public PerkBlockThrowEvent(Player player)
{
_player = player;
}
public HandlerList getHandlers()
{
return handlers;
}
public static HandlerList getHandlerList()
{
return handlers;
}
public Player GetPlayer()
{
return _player;
}
}