Advertisement
Guest User

Untitled

a guest
Feb 5th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. minetest.register_on_prejoinplayer(function(name, ip)
  2.  
  3. local lowername = string:lower(name)
  4.  
  5. if string.find(lowername,"r") == nil then
  6. return "Sorry only names containing \"R/r\" are allowed to connect."
  7. end
  8.  
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement