]> git.lizzy.rs Git - skycraft.git/commitdiff
Alpha Phase
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Jun 2020 09:29:00 +0000 (11:29 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 10 Jun 2020 09:29:00 +0000 (11:29 +0200)
modules.txt
src/main/alpha.lua [new file with mode: 0644]

index f7d313367dd85bd200c2d7c29b705ea41bd02a18..1ec42b8e3520f39a588f2df931a7d25ca79c1289 100644 (file)
@@ -1 +1 @@
-return {common={"common","random","request","schems",},main={"commands","flower_spread","join_skyblock_mob","lobby","lucky_block","mapgen","money","netherrack_fix","plots","ranks","spawns","tpa","trade","wither_spawn",},onload={"lava_cooling","lobby_grass","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
\ No newline at end of file
+return {common={"common","random","request","schems",},main={"alpha","commands","flower_spread","join_skyblock_mob","lobby","lucky_block","mapgen","money","netherrack_fix","plots","ranks","spawns","tpa","trade","wither_spawn",},onload={"lava_cooling","lobby_grass","monster_egg_stone_block","nether_portal","sapling_mutation","shop","spawn","void",},}
\ No newline at end of file
diff --git a/src/main/alpha.lua b/src/main/alpha.lua
new file mode 100644 (file)
index 0000000..64c1590
--- /dev/null
@@ -0,0 +1,6 @@
+minetest.register_on_joinplayer(function(player)
+       local name = player:get_player_name()
+       if 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)