public class OllivandersListener
extends java.lang.Object
implements org.bukkit.event.Listener
Constructor and Description |
---|
OllivandersListener(Ollivanders plugin) |
Modifier and Type | Method and Description |
---|---|
void |
allyWand(org.bukkit.entity.Player player)
If a wand is not already allied with a player, this allies it.
|
void |
broomClick(org.bukkit.event.player.PlayerInteractEvent event)
Event fires when a player right clicks with a broom in their hand
|
void |
catPost(org.bukkit.event.player.AsyncPlayerChatEvent event)
Monitors chat events for the cat-post keywords and enacts the cat-post system
|
void |
cauldronClick(org.bukkit.event.player.PlayerInteractEvent event)
Fires if a player right clicks a cauldron that is being heated from underneath
|
void |
cloakPlayer(org.bukkit.event.entity.EntityTargetEvent event)
Cancels any targeting of players with the Cloak of Invisibility
or inside of a REPELLO_MUGGLETON while the targeting entity is
outside it.
|
boolean |
holdsWand(org.bukkit.entity.Player player)
Does the player hold a wand item?
|
void |
inferiTarget(org.bukkit.event.entity.EntityTargetEvent event)
Cancels any targeting of players who own inferi by that inferi
|
org.bukkit.inventory.ItemStack |
makeJournal(org.bukkit.entity.Player player)
Rewrites the journal book full of the player's experience.
|
void |
onColloBlockBreakEvent(org.bukkit.event.block.BlockBreakEvent event)
Cancels any block break event inside of a colloportus object
|
void |
onColloBlockPhysicsEvent(org.bukkit.event.block.BlockPhysicsEvent event)
Cancels any block physics event inside of a colloportus object
|
void |
onColloBlockPlaceEvent(org.bukkit.event.block.BlockPlaceEvent event)
Cancels any block place event inside of a colloportus object
|
void |
onColloEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event)
Cancels any block change by an entity inside of a colloportus
|
void |
onColloPistonExtend(org.bukkit.event.block.BlockPistonExtendEvent event)
Cancels any piston extend event inside a colloportus
|
void |
onColloPistonRetract(org.bukkit.event.block.BlockPistonRetractEvent event)
Cancels any piston retract event inside of a colloportus
|
void |
onColloPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
Cancels any block interact event inside a colloportus object
|
void |
onEntityDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
This checks if a player kills another player, and if so, adds a soul
to the attacking player's oplayer
|
void |
onExplosion(org.bukkit.event.entity.EntityExplodeEvent event)
If a block is a tempBlock or is inside colloportus, then don't blow it up.
|
void |
onFlooChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
Checks if a player is inside an active floo fireplace and is saying a destination
|
void |
onPlayerBook(org.bukkit.event.player.PlayerEditBookEvent event)
If a player is signing a book, try to encode any spells in the book.
|
void |
onPlayerChat(org.bukkit.event.player.AsyncPlayerChatEvent event) |
void |
onPlayerDamage(org.bukkit.event.entity.EntityDamageEvent event) |
void |
onPlayerDeath(org.bukkit.event.entity.PlayerDeathEvent event) |
void |
onPlayerDrink(org.bukkit.event.player.PlayerItemConsumeEvent event) |
void |
onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) |
void |
onPlayerJoin(org.bukkit.event.player.PlayerLoginEvent event) |
void |
onPlayerMove(org.bukkit.event.player.PlayerMoveEvent event)
Fires on player move
|
void |
onTemporaryBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
If a block is broken that is temporary, prevent it from dropping anything.
|
void |
portkeyPickUp(org.bukkit.event.player.PlayerPickupItemEvent event)
When an item is picked up by a player, if the item is a portkey, the player will be teleported there.
|
void |
spellPowerChange(org.bukkit.event.player.PlayerItemHeldEvent event)
Event fires when player changes to an adjacent slot while holding a wand and crouching
|
void |
transfiguredEntityExplodeCancel(org.bukkit.event.entity.EntityExplodeEvent event)
Prevents a transfigured entity from changing any blocks by exploding.
|
static double |
wandCheck(org.bukkit.entity.Player player)
Checks what kind of wand a player holds.
|
void |
witchWandDrop(org.bukkit.event.entity.EntityDeathEvent event)
This drops a random wand when a witch dies
|
public OllivandersListener(Ollivanders plugin)
public void onPlayerMove(org.bukkit.event.player.PlayerMoveEvent event)
event
- public void onFlooChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
event
- public void onPlayerChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
public void catPost(org.bukkit.event.player.AsyncPlayerChatEvent event)
event
- Chat event of type AsyncPlayerChatEventpublic void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
public org.bukkit.inventory.ItemStack makeJournal(org.bukkit.entity.Player player)
player
- = Player reading the book.public void onPlayerJoin(org.bukkit.event.player.PlayerLoginEvent event)
public void onPlayerDeath(org.bukkit.event.entity.PlayerDeathEvent event)
public void onEntityDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
event
- public void onPlayerDamage(org.bukkit.event.entity.EntityDamageEvent event)
public void onPlayerBook(org.bukkit.event.player.PlayerEditBookEvent event)
event
- - PlayerEditBookEventpublic void onColloBlockPlaceEvent(org.bukkit.event.block.BlockPlaceEvent event)
event
- - BlockEventpublic void onColloBlockBreakEvent(org.bukkit.event.block.BlockBreakEvent event)
event
- - BlockEventpublic void onColloBlockPhysicsEvent(org.bukkit.event.block.BlockPhysicsEvent event)
event
- - BlockEventpublic void onColloPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
event
- - PlayerInteractEventpublic void onColloPistonExtend(org.bukkit.event.block.BlockPistonExtendEvent event)
event
- public void onColloPistonRetract(org.bukkit.event.block.BlockPistonRetractEvent event)
event
- - BlockPistonRetractEventpublic void onColloEntityChangeBlock(org.bukkit.event.entity.EntityChangeBlockEvent event)
event
- - EntityChangeBlockEventpublic boolean holdsWand(org.bukkit.entity.Player player)
player
- - Player to check.public static double wandCheck(org.bukkit.entity.Player player)
player
- - Player being checked. The player must be holding a wand.1 - The wand is your type and is allied to you OR the wand is the elder wand and is not allied to you.
0.5 - The wand is the elder wand and it is allied to you.
public void onTemporaryBlockBreak(org.bukkit.event.block.BlockBreakEvent event)
event
- public void onExplosion(org.bukkit.event.entity.EntityExplodeEvent event)
event
- public void allyWand(org.bukkit.entity.Player player)
player
- - Player holding a wand.public void transfiguredEntityExplodeCancel(org.bukkit.event.entity.EntityExplodeEvent event)
event
- public void portkeyPickUp(org.bukkit.event.player.PlayerPickupItemEvent event)
event
- - PlayerPickupItemEventpublic void cloakPlayer(org.bukkit.event.entity.EntityTargetEvent event)
event
- - EntityTargetEventpublic void inferiTarget(org.bukkit.event.entity.EntityTargetEvent event)
event
- - EntityTargetEventpublic void witchWandDrop(org.bukkit.event.entity.EntityDeathEvent event)
event
- public void cauldronClick(org.bukkit.event.player.PlayerInteractEvent event)
event
- public void onPlayerDrink(org.bukkit.event.player.PlayerItemConsumeEvent event)
public void broomClick(org.bukkit.event.player.PlayerInteractEvent event)
event
- public void spellPowerChange(org.bukkit.event.player.PlayerItemHeldEvent event)
event
-