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
|
||||
|
||||
```lua
|
||||
minetest.register_chatcommand("vote_kick", {
|
||||
privs = {
|
||||
interact = true
|
||||
},
|
||||
func = function(name, param)
|
||||
local function start_kick_vote(name, param)
|
||||
if not minetest.get_player_by_name(param) then
|
||||
minetest.chat_send_player(name, "There is no player called '" ..
|
||||
param .. "'")
|
||||
@ -47,6 +43,12 @@ minetest.register_chatcommand("vote_kick", {
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_chatcommand("vote_kick", {
|
||||
privs = {
|
||||
interact = true
|
||||
},
|
||||
func = start_kick_vote
|
||||
})
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user