Compare commits

2 Commits

4 changed files with 7 additions and 2 deletions

View File

@ -1 +0,0 @@
default

View File

@ -1 +0,0 @@
Record flight paths and replay them.

View File

@ -1,3 +1,4 @@
minetest.register_privilege("camera", { description = "Can use camera commands" })
local recordings = {}
-- [function] Load recordings
@ -251,6 +252,9 @@ minetest.register_chatcommand("camera", {
description = "Manipulate recording",
params = "<option> <value>",
func = function(name, param)
if not minetest.check_player_privs(name, { camera = true }) then
return false, "You need camera privilege!"
end
local player = minetest.get_player_by_name(name)
local param1, param2 = param:split(" ")[1], param:split(" ")[2]

View File

@ -1 +1,4 @@
name = camera
title = Camera
description = Record flight paths and replay them.
depends = default