Add 'interact' requirement to use 'death_pos' command

This commit is contained in:
Toby 2021-10-03 19:48:03 +03:00 committed by GitHub
parent 8a6ea019ba
commit a5a15c5b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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()]