ask permissions for creating account?

User avatar
linushsao
Member
 
Posts: 331
Joined: Mon Jan 27, 2014 12:56
IRC: linushsao
In-game: linus

ask permissions for creating account?

by linushsao » Sat Apr 23, 2016 03:42

hi,alll

Is it possible that users have to ask permissions before creating account, and how to completely delete guest account & data?

Thanks for your reply.
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: ask permissions for creating account?

by red-001 » Fri Jun 24, 2016 00:01

You could use something like this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local users = {"singleplayer","another_user"}

minetest.register_on_prejoinplayer(function(name, ip)
   for _,current_name in pairs(users) do
      if name == current_name then
         return
      end
   end
   return "You are not allow to join this server"
end)
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 19 guests

cron