summaryrefslogtreecommitdiff
path: root/init.lua
blob: 4523ae27655308f15b129f44a6f1b161039bada6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
busy_ban = {}
minetest.register_on_prejoinplayer(function(name, ip)
      if minetest.player_exists(name) then
	 return
      end
      if name:match("%d%d%d") then
	 return "We don't allow players with 3 numbers in their name. Please choose another username"
      end
      if #minetest.get_connected_players() > 6 then
	 return "Too many players are online right now. Please rejoin at a less busy moment"
      end
end)