Sueta
WO

WorldBorderRescue

1.0.0

Rescue players from unsafe teleports beyond the vanilla world border

·Plugin


WorldBorderRescue protect your players from dying outside of the vanilla world border.

The reasons for dying out of bounds are numerous:

  • Nether portal generated out of bounds ( known bug )
  • Misconfigured world border size
  • Unsafe teleportation commands
  • Reckless enderpearls

Prevent these and all future world border death issues by installing this plugin. WorldBorderRescue allows you to:

  • Prevent teleportations before they happen (cancels unsafe nether portals/ender pearls)
  • Configure a safe rescue location where players are teleported to before they take damage (default to world spawn)
  • Ignore specific game modes or teleportation causes
  • Fully configure the messages appearing in the chat
  • Be informed of rescues performed in the server logs


This is a simple drag & drop plugin which can be configured by editing plugins/WorldBorderRescue/config.yml (generated when the plugin is loaded the first time). The default config is:

# WorldBorderRescue config file  
 
safeLocation  :  
  default  :  
    world   :   "world"  
     # World spawn by default. Uncomment to change coords:  
     #x: 0  
     #y: 0  
     #z: 0  
 
teleportation  :  
  preventUnsafeTeleports   :  true  
  ignoreGamemodes   : 
      #- "ADVENTURE"  
    -  "CREATIVE"  
    -  "SPECTATOR"  
     #- "SURVIVAL"   
  ignoreCauses   : 
      #- "CHORUS_FRUIT"  
    -  "COMMAND"  
     #- "END_GATEWAY"  
     #- "END_PORTAL"  
     #- "ENDER_PEARL"  
     #- "NETHER_PORTAL"  
    -  "PLUGIN"  
    -  "SPECTATE"  
     #- "UNKNOWN"  
 
tweaks  :  
  minDistanceBeforeTP   :  2  
  eventCooldown   :  3 
 
lang  :  
  prefix   :   "§b[WorldBorderRescue]§f "   
  rescued   :   "You found your way outside of the world border and have been teleported to safety."   
  tpPrevented   :   "This teleportation would be deadly."

This plugin is optimized to cause as little overhead as possible. It listens to teleportation and damage events only, and filters out irrelevant events as quickly as possible to avoid useless calculations.

Similar projects

Plugin →