1
0
Fork 0

add some other types

chat-command-builder-2
AFCMS 2021-06-24 14:12:37 +02:00
parent 6d1bc8f865
commit d19f88d226
1 changed files with 23 additions and 2 deletions

View File

@ -42,7 +42,17 @@ mcl_commands.types = {
end
end,
},
word = {},
word = {
lengh = 1,
msg = S("Invalid word"),
func = function(word)
if word then
return true, word
else
return false, nil
end
end,
},
text = {},
pos = {
lengh = 3,
@ -56,7 +66,18 @@ mcl_commands.types = {
end
end,
},
target = {},
target = {
lengh = 1,
msg = S("Invalid target selector"),
func = function(target)
--mcl_commands.get_target_selector(target_selector)
if minetest.player_exists(target) then
return true, target
else
return false, nil
end
end,
},
playername = {
lengh = 1,
msg = S("Invalid player name"),