Class WorldListener

java.lang.Object
dev.plex.listener.PlexListener
dev.plex.listener.impl.WorldListener
All Implemented Interfaces:
PlexBase, org.bukkit.event.Listener

public class WorldListener extends PlexListener
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    private final List <String>
     

    Fields inherited from interface dev.plex.PlexBase Link icon

    plugin
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    private boolean
    canEnterWorld (org.bukkit.entity.Player player, org.bukkit.World destination)
    Check if a Player has the ability to enter the requested world
    private boolean
    canModifyWorld (org.bukkit.entity.Player player, boolean showMessage)
    Check if a Player has the ability to modify the world they are in
    void
    onBlockBreak (org.bukkit.event.block.BlockBreakEvent event)
     
    void
    onBlockPlace (org.bukkit.event.block.BlockPlaceEvent event)
     
    void
    onEntitySpawn (org.bukkit.event.entity.EntitySpawnEvent event)
     
    void
    onInteractWorld (org.bukkit.event.entity.EntityDamageByEntityEvent event)
     
    void
    onInteractWorld (org.bukkit.event.player.PlayerInteractEntityEvent event)
     
    void
    onInteractWorld (org.bukkit.event.player.PlayerInteractEvent event)
     
    void
    onInteractWorld (org.bukkit.event.player.PlayerItemDamageEvent event)
     
    void
    onPlayerCommandPreprocess (org.bukkit.event.player.PlayerCommandPreprocessEvent event)
     
    void
    onWorldTeleport (org.bukkit.event.player.PlayerTeleportEvent event)
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • EDIT_COMMANDS Link icon

      private final List<String> EDIT_COMMANDS
  • Constructor Details Link icon

    • WorldListener Link icon

      public WorldListener()
  • Method Details Link icon

    • onBlockPlace Link icon

      public void onBlockPlace (org.bukkit.event.block.BlockPlaceEvent event)
    • onBlockBreak Link icon

      public void onBlockBreak (org.bukkit.event.block.BlockBreakEvent event)
    • onInteractWorld Link icon

      public void onInteractWorld (org.bukkit.event.player.PlayerInteractEvent event)
    • onInteractWorld Link icon

      public void onInteractWorld (org.bukkit.event.player.PlayerInteractEntityEvent event)
    • onInteractWorld Link icon

      public void onInteractWorld (org.bukkit.event.player.PlayerItemDamageEvent event)
    • onInteractWorld Link icon

      public void onInteractWorld (org.bukkit.event.entity.EntityDamageByEntityEvent event)
    • onEntitySpawn Link icon

      public void onEntitySpawn (org.bukkit.event.entity.EntitySpawnEvent event)
    • onPlayerCommandPreprocess Link icon

      public void onPlayerCommandPreprocess (org.bukkit.event.player.PlayerCommandPreprocessEvent event)
    • onWorldTeleport Link icon

      public void onWorldTeleport (org.bukkit.event.player.PlayerTeleportEvent event)
    • canModifyWorld Link icon

      private boolean canModifyWorld (org.bukkit.entity.Player player, boolean showMessage)
      Check if a Player has the ability to modify the world they are in
      Parameters:
      player - The player who wants to modify the world
      showMessage - Whether the message from the config.yml should be shown
      Returns:
      Returns true if the person has the ability to modify the world
    • canEnterWorld Link icon

      private boolean canEnterWorld (org.bukkit.entity.Player player, org.bukkit.World destination)
      Check if a Player has the ability to enter the requested world
      Parameters:
      player - The player who wants to enter the world
      Returns:
      Returns true if the person has the ability to enter the world