Add: long name to description cmd
This commit is contained in:
parent
3b1d02fd33
commit
d8abcbb05b
@ -64,7 +64,7 @@ factions.register_command("version", {
|
|||||||
description_arg = ":",
|
description_arg = ":",
|
||||||
infaction = false,
|
infaction = false,
|
||||||
on_success = function(player, faction, pos, parcelpos, args)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
minetest.chat_send_player(player, "factions: version 0.8.8", false)
|
minetest.chat_send_player(player, "factions: version 0.8.9", false)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
--show description of faction
|
--show description of faction
|
||||||
@ -152,7 +152,7 @@ factions.register_command("join", {
|
|||||||
if new_faction and factions.can_join(new_faction.name, player) then
|
if new_faction and factions.can_join(new_faction.name, player) then
|
||||||
factions.add_player(new_faction.name, player)
|
factions.add_player(new_faction.name, player)
|
||||||
elseif new_faction then
|
elseif new_faction then
|
||||||
minetest.chat_send_player(player, "You cannot join this faction")
|
minetest.chat_send_player(player, "You cannot join this faction.")
|
||||||
return false
|
return false
|
||||||
else
|
else
|
||||||
minetest.chat_send_player(player, "Enter the right faction name.")
|
minetest.chat_send_player(player, "Enter the right faction name.")
|
||||||
@ -185,11 +185,11 @@ factions.register_command("flag", {
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
factions.register_command("desc", {
|
factions.register_command({"description", "desc"}, {
|
||||||
format = {"string"},
|
format = {"string"},
|
||||||
faction_permissions = {"description"},
|
faction_permissions = {"description"},
|
||||||
description = "Set your faction's description",
|
description = "Set your faction's description",
|
||||||
description_arg = " <description>:",
|
description_arg = " <desc, description>:",
|
||||||
global_privileges = def_global_privileges,
|
global_privileges = def_global_privileges,
|
||||||
ignore_param_limit = true,
|
ignore_param_limit = true,
|
||||||
on_success = function(player, faction, pos, parcelpos, args)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
|
@ -192,7 +192,7 @@ factions.register_command({"flag help", "flag flags"}, {
|
|||||||
on_success = function(player, faction, pos, parcelpos, args)
|
on_success = function(player, faction, pos, parcelpos, args)
|
||||||
local msg = ""
|
local msg = ""
|
||||||
for i, k in pairs(factions.flags) do
|
for i, k in pairs(factions.flags) do
|
||||||
msg = msg .. i ..": ".. k .. "\n"
|
msg = msg .. i .. ": " .. k .. "\n"
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(player, msg)
|
minetest.chat_send_player(player, msg)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user