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