Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Snip from my settingstypes.txt file
- mymod_allow_command_line (Allow mymod to be accessed via command) bool true
- -- End Snip
- -- Snip from my init.lua file
- local mymod_command_access = minetest.settings:get_bool("mymod_allow_command_line", false)
- if mymod_command_access then
- -- Here is where I register a command /mymod_ping
- -- /mymod_ping simply responds with pong in chat
- end
- -- End Snip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement