Go to file
Lejo1 58ce417b91
Make Licensing clear
2020-05-29 18:19:21 +02:00
menu Recreate Repository 2018-07-07 12:07:27 +02:00
mods Auto disable sauth, sban when not avaible (testing) 2020-05-24 13:10:39 +02:00
.gitignore Recreate Repository 2018-07-07 12:07:27 +02:00
.gitmodules Replace all my mods with submodules 2019-02-03 11:52:33 +01:00
README.md Make Licensing clear 2020-05-29 18:19:21 +02:00
game.conf Recreate Repository 2018-07-07 12:07:27 +02:00
minetest_game_LICENSE.txt Make Licensing clear 2020-05-29 18:19:21 +02:00

README.md

Subgames

Contribution repository for the Minetest Server Subgames for all!

This Repository is not for using on your own Server!

Installing

  1. git clone --recursive https://github.com/Lejo1/subgames.git

License

Check the specific mod folder for the License.

The Mods from minetest_game are licensed under:
Textures: CC-BY-SA 3.0
Code: LGPL 2.1 or later

The Mods: subgames, skywars, hiddenseeker, mesewars, main, build, survivalgames are created by Lejo
With the following License: You are not allowed to distribute any copy or work based on this programm unless the copyright holder declares his consent. You are not allowed to use this mods on a public server. THE SOFTWARE IS PROVIDED WITHOUT WARRANTY OF ANY KIND!

API

The Server is splitted into diffrent lobbys.

This is saved in player_lobby[name] = "main"

All minetest registers like minetest.register_on_join_player(func(player)) are here subgames.register_on_join_player(func(player, lobby)) lobby is the name string of the Lobby where the Action happens.

But not all registers are supported yet.

Example:

subgames.register_on_join_player(function(player, lobby) if lobby == "main" then minetest.chat_send_play(player:get_player_name(), "HI") end end)

IMPORTANT: Registers like on_place_node don't allways have a player! For this a Lobby must register its location at the top of mods/subgames/init.lua

areas={ ["mesewars"] = { [1] = {x=(-76), y=158, z=154}, [2] = {x=266, y=(-52), z=(-169)} }, ["main"] = { [1] = {x=(-31), y=623, z=0}, [2] = {x=9, y=595, z=39} }, ["hiddenseeker"] = { [1] = {x=0, y=(-10000), z=0}, [2] = {x=0, y=(-10000), z=0} }, ["skywars"] = { [1] = {x=10000, y=1900, z=10000}, [2] = {x=(-10000), y=2900, z=(-10000)} } }

The API is not finished!