Class SingleBalloonPlayerListener

java.lang.Object
net.jeqo.bloons.listeners.single.SingleBalloonPlayerListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class SingleBalloonPlayerListener extends Object implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDeath(org.bukkit.event.entity.PlayerDeathEvent event)
    When they die, remove their balloon
    void
    onJoin(org.bukkit.event.player.PlayerJoinEvent event)
    When a player joins, add the balloon back if they left with one, or just don't add anything
    void
    onQuit(org.bukkit.event.player.PlayerQuitEvent event)
    When a player quits, make sure to despawn and store their balloon in storage
    void
    onRespawn(org.bukkit.event.player.PlayerRespawnEvent event)
    When they respawn, add the balloon they back that they died with
    void
    onWorldChange(org.bukkit.event.player.PlayerChangedWorldEvent event)
    When they change worlds, store their balloon and move the balloon armor stand over

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SingleBalloonPlayerListener

      public SingleBalloonPlayerListener()
  • Method Details

    • onQuit

      public void onQuit(org.bukkit.event.player.PlayerQuitEvent event)
      When a player quits, make sure to despawn and store their balloon in storage
      Parameters:
      event - The event that is called when a player quits the server, type org.bukkit.event.player.PlayerQuitEvent
    • onJoin

      public void onJoin(org.bukkit.event.player.PlayerJoinEvent event)
      When a player joins, add the balloon back if they left with one, or just don't add anything
      Parameters:
      event - The event that is called when a player joins the server, type org.bukkit.event.player.PlayerJoinEvent
    • onDeath

      public void onDeath(org.bukkit.event.entity.PlayerDeathEvent event)
      When they die, remove their balloon
      Parameters:
      event - The event that is called when a player dies, type org.bukkit.event.entity.PlayerDeathEvent
    • onRespawn

      public void onRespawn(org.bukkit.event.player.PlayerRespawnEvent event)
      When they respawn, add the balloon they back that they died with
      Parameters:
      event - The event that is called when a player respawns, type org.bukkit.event.player.PlayerRespawnEvent
    • onWorldChange

      public void onWorldChange(org.bukkit.event.player.PlayerChangedWorldEvent event)
      When they change worlds, store their balloon and move the balloon armor stand over
      Parameters:
      event - The event that is called when a player changes worlds, type org.bukkit.event.player.PlayerChangedWorldEvent