remove allowing spawns in admin protected areas

master
Tai Kedzierski 2019-01-09 14:25:38 +00:00
parent f03fca14d1
commit f216ebd049
2 changed files with 3 additions and 6 deletions

View File

@ -7,7 +7,7 @@ Causes players to receive a spawn point anywhere on the map. Players will likely
* Player is assigned randomized spawnpoint on joining
* Player will respawn at their spawnpoint if they die.
* If `beds` spawning is active, then beds can be used to reset the players' spawn point.
* Players will not spawn in spaces that are protected by any other player than the Server Admin.
* Players will not spawn in spaces that are protected
* Commands
* Players can return to their spawn point with the `/spawn` command if they have `spawn` privilege.
* Players can invite other players to join their spawn - see "Spawn invites" below
@ -52,7 +52,7 @@ Note that the spawn generation is performed in the background on a timer, allowi
* default `true`
* if `false`, will randomize around the static spawn point
* `rspawn.levvy_name` - name of the block to use as levvy charge on the player issuing an invitation, default `default:cobble`
* `rspawn.levvy_qtty` - number of blocks to levvy from the player who issued the invitation, default `99`
* `rspawn.levvy_qtty` - number of blocks to levvy from the player who issued the invitation, default `10`
* `rspawn.kick_on_fail` - whether to kick the player if a randomized spawn cannot be set, default `false`
* `rspawn.spawn_block` - place this custom block under the user's spawn point
* `rspawn.debug` - whether to print debugging messages, default `false`

View File

@ -21,9 +21,6 @@ local static_spawnpoint = minetest.setting_get_pos("static_spawnpoint") or {x=0,
-- Setting from beds mod
rspawn.bedspawn = minetest.setting_getbool("enable_bed_respawn", true) -- from beds mod
-- Detect server mode, of sorts
rspawn.adminname = minetest.settings:get("name", "singleplayer")
-- rSpawn specific settings
rspawn.debug_on = minetest.settings:get_bool("rspawn.debug")
rspawn.spawnanywhere = notnil_or(true, minetest.settings:get_bool("rspawn.spawn_anywhere") )
@ -88,7 +85,7 @@ function rspawn:newspawn(pos, radius)
if under.walkable
and not over.walkable
and not minetest.is_protected(anode, rspawn.adminname)
and not minetest.is_protected(anode, "")
and not (under.groups and under.groups.leaves ) -- no spawning on treetops!
and daylight_above(7, anode) then
validnodes[#validnodes+1] = anode