Rename chatcommand to /vanish
This commit is contained in:
parent
5b23d8dd6a
commit
f952a301dc
@ -7,7 +7,7 @@ Invisibility Command [invis]
|
||||
This extremely simple mod introduces a single command that allows you to make yourself or another player invisible (both the player itself and the nametag).
|
||||
|
||||
__Usage:__
|
||||
- `/invisible`: Toggle invisibility for yourself
|
||||
- `/invisible <name>`: Toggle invisibility for another player
|
||||
- `/vanish`: Toggle invisibility for yourself
|
||||
- `/vanish <name>`: Toggle invisibility for another player
|
||||
|
||||
__Note:__ The `/invisible` command requires the `invisible` privilege.
|
||||
__Note:__ The `/vanish` command requires the `vanish` privilege.
|
||||
|
4
init.lua
4
init.lua
@ -51,10 +51,10 @@ function invis.toggle(player, toggle)
|
||||
end
|
||||
|
||||
-- [register] Privilege
|
||||
minetest.register_privilege("invisibility", "Allow use of /invisible command")
|
||||
minetest.register_privilege("vanish", "Allow use of /vanish command")
|
||||
|
||||
-- [register] Command
|
||||
minetest.register_chatcommand("invisible", {
|
||||
minetest.register_chatcommand("vanish", {
|
||||
description = "Make yourself or another player invisible",
|
||||
params = "<name>",
|
||||
privs = {invisibility=true},
|
||||
|
Loading…
x
Reference in New Issue
Block a user