]> git.lizzy.rs Git - skycraft.git/commitdiff
Alpha Phase is over
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Jun 2020 10:44:45 +0000 (12:44 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Jun 2020 10:44:45 +0000 (12:44 +0200)
src/main/alpha.lua

index 64c15905e6a9493fca5f07a6963dfd2332c49b3e..53d33788827e06ece24b0107156c7cd23b9c6ec4 100644 (file)
@@ -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)