forked from mtcontrib/factions
Fixed /f spawn
This commit is contained in:
parent
79e270c38d
commit
1e1cb6d65f
@ -462,8 +462,10 @@ factions.register_command("help", {
|
|||||||
factions.register_command("spawn", {
|
factions.register_command("spawn", {
|
||||||
description = "Shows your faction's spawn",
|
description = "Shows your faction's spawn",
|
||||||
on_success = function(player, faction, pos, parcelpos, args)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
if faction.spawn then
|
local spawn = faction.spawn
|
||||||
minetest.chat_send_player(player, "Spawn is at ("..table.concat(faction.spawn, ", ")..")")
|
if spawn then
|
||||||
|
local spawn = {spawn.x, spawn.y, spawn.z}
|
||||||
|
minetest.chat_send_player(player, "Spawn is at ("..table.concat(spawn, ", ")..")")
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(player, "Your faction has no spawn set.")
|
minetest.chat_send_player(player, "Your faction has no spawn set.")
|
||||||
|
Loading…
Reference in New Issue
Block a user