aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/alpha.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/alpha.lua b/src/main/alpha.lua
index 64c1590..53d3378 100644
--- a/src/main/alpha.lua
+++ b/src/main/alpha.lua
@@ -1,6 +1,8 @@
+skycraft.alpha = false
+
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
- if not minetest.check_player_privs(name, {protection_bypass = true}) then
+ if skycraft.alpha and not minetest.check_player_privs(name, {protection_bypass = true}) then
minetest.kick_player(name, "Thanks for Joining this Server! But you can not play here yet, we are still busy building the server. We would like to see you again as soon as the alpha phase is over!")
end
end)