Class ManhuntEventHandler
java.lang.Object
uk.radialbog9.spigot.manhunt.listeners.ManhuntEventHandler
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompassRightClickEvent(org.bukkit.event.player.PlayerInteractEvent e) Detects compass right click for hunters.voidenderDragonDeathEvent(org.bukkit.event.entity.EntityDeathEvent e) Detects ender dragon death.voidhunterCrystalDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e) Stops the hunters from being able to damage the End CrystalsvoidhunterDragonDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e) Stops the hunters from being able to damage the Ender DragonvoidhunterRespawnEvent(org.bukkit.event.player.PlayerRespawnEvent e) Detects when hunters respawn and gives them a compassvoidinGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e) Detects when player joins server while the server is running a manhunt game.voidinGamePlayerLeaveEvent(org.bukkit.event.player.PlayerQuitEvent e) Detects when hunter/runner leaves the server and sets them as a spectatorvoidnoGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e) Detects player joining when game is not startedvoidrunnerDeathEvent(org.bukkit.event.entity.PlayerDeathEvent e) Detects death for runners
-
Constructor Details
-
ManhuntEventHandler
public ManhuntEventHandler()
-
-
Method Details
-
runnerDeathEvent
public void runnerDeathEvent(org.bukkit.event.entity.PlayerDeathEvent e) Detects death for runners- Parameters:
e- the event
-
hunterRespawnEvent
public void hunterRespawnEvent(org.bukkit.event.player.PlayerRespawnEvent e) Detects when hunters respawn and gives them a compass- Parameters:
e- the event
-
compassRightClickEvent
public void compassRightClickEvent(org.bukkit.event.player.PlayerInteractEvent e) Detects compass right click for hunters.- Parameters:
e- the event
-
inGamePlayerJoinEvent
public void inGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e) Detects when player joins server while the server is running a manhunt game.- Parameters:
e- the event
-
inGamePlayerLeaveEvent
public void inGamePlayerLeaveEvent(org.bukkit.event.player.PlayerQuitEvent e) Detects when hunter/runner leaves the server and sets them as a spectator- Parameters:
e- the event
-
enderDragonDeathEvent
public void enderDragonDeathEvent(org.bukkit.event.entity.EntityDeathEvent e) Detects ender dragon death.- Parameters:
e- the event
-
noGamePlayerJoinEvent
public void noGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e) Detects player joining when game is not started- Parameters:
e- the event
-
hunterDragonDamageEvent
public void hunterDragonDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e) Stops the hunters from being able to damage the Ender Dragon- Parameters:
e- the event
-
hunterCrystalDamageEvent
public void hunterCrystalDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e) Stops the hunters from being able to damage the End Crystals- Parameters:
e- the event
-