Respawns players in random location after death

Supported Games

Simple plugin that replaces default respawn with generation of random position on the whole map.

Permissions

  • randomrespawner.use -- Defines players whose respawn behavior is changed by the plugin

Configuration

{
  "Maximum Attempts To Find A Respawn Position": 200,
  "Min Distance From Other Playes On Respawn (Including NPC Players)": 20.0,
  "Prevent Players To Be Respawn At Monuments": true,
  "Prevent Players To Be Respawn At ZoneManager": true,
  "Prevent Players To Be Respawn At RadiationZone": true,
  "Minimum Slope": 0.0,
  "Maximum Slope": 60.0,
  "Biome Settings": {
    "Arid": true,
    "Temperate": true,
    "Tundra": true,
    "Arctic": true
  },
  "Splat Settings": {
    "Dirt": true,
    "Snow": true,
    "Sand": true,
    "Rock": true,
    "Grass": true,
    "Forest": true,
    "Stones": true,
    "Gravel": true
  },
  "Topology Settings": {
    "Field": true,
    "Cliff": true,
    "Summit": true,
    "Beachside": true,
    "Beach": true,
    "Forest": true,
    "Forestside": true,
    "Ocean": true,
    "Oceanside": true,
    "Decor": true,
    "Monument": true,
    "Road": true,
    "Roadside": true,
    "Swamp": true,
    "River": true,
    "Riverside": true,
    "Lake": true,
    "Lakeside": true,
    "Offshore": true,
    "Powerline": true,
    "Plain": true,
    "Building": true,
    "Cliffside": true,
    "Mountain": true,
    "Clutter": true,
    "Alt": true,
    "Tier0": true,
    "Tier1": true,
    "Tier2": true,
    "Mainland": true,
    "Hilltop": true
  }
}

Hooks

private object OnRandomRespawn(BasePlayer player,Vector3 spawnPos)

APIs

private Vector3? GetRandomSpawnPos()
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.