Better formatting in README.md

This commit is contained in:
rubenwardy 2015-08-12 12:32:40 +01:00
parent da96149868
commit 7166571497

View File

@ -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
})
```