mirror of
https://github.com/BrownHedgehog78/death_pos.git
synced 2024-11-23 15:43:46 +01:00
Add 'interact' requirement to use 'death_pos' command
This commit is contained in:
parent
8a6ea019ba
commit
a5a15c5b63
1
init.lua
1
init.lua
@ -10,6 +10,7 @@ end)
|
||||
|
||||
minetest.register_chatcommand("death_pos", {
|
||||
description = "Go to your last death position",
|
||||
privs = {interact = true},
|
||||
func = function(name)
|
||||
local player = minetest.get_player_by_name(name)
|
||||
local pos = death_pos[player:get_player_name()]
|
||||
|
Loading…
Reference in New Issue
Block a user