diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-10 11:29:00 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-10 11:29:00 +0200 |
commit | 839638681b1ff356902ae45e5f0bd1b0cac82d7d (patch) | |
tree | c18bd30cd9644329a5cf26336df6935c0d342f6e | |
parent | 4ef9557505017a1c8ec8621260078117e6446946 (diff) | |
download | skycraft-839638681b1ff356902ae45e5f0bd1b0cac82d7d.tar.xz |
Alpha Phase
-rw-r--r-- | modules.txt | 2 | ||||
-rw-r--r-- | src/main/alpha.lua | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/modules.txt b/modules.txt index f7d3133..1ec42b8 100644 --- a/modules.txt +++ b/modules.txt @@ -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 index 0000000..64c1590 --- /dev/null +++ b/src/main/alpha.lua @@ -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) |