Better formatting in README.md
This commit is contained in:
parent
da96149868
commit
7166571497
12
README.md
12
README.md
@ -12,11 +12,7 @@ Licensed under WTFPL or CC0 (you choose)
|
|||||||
# Example
|
# Example
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
minetest.register_chatcommand("vote_kick", {
|
local function start_kick_vote(name, param)
|
||||||
privs = {
|
|
||||||
interact = true
|
|
||||||
},
|
|
||||||
func = function(name, param)
|
|
||||||
if not minetest.get_player_by_name(param) then
|
if not minetest.get_player_by_name(param) then
|
||||||
minetest.chat_send_player(name, "There is no player called '" ..
|
minetest.chat_send_player(name, "There is no player called '" ..
|
||||||
param .. "'")
|
param .. "'")
|
||||||
@ -47,6 +43,12 @@ minetest.register_chatcommand("vote_kick", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.register_chatcommand("vote_kick", {
|
||||||
|
privs = {
|
||||||
|
interact = true
|
||||||
|
},
|
||||||
|
func = start_kick_vote
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user