Force-exit game if launching in multiplayer mode

This commit is contained in:
Wuzzy 2024-01-09 03:24:27 +01:00
parent 61b71a7c6d
commit 84a70c0bd5
4 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,5 @@
local S = minetest.get_translator("sf_no_multiplayer")
if not minetest.is_singleplayer() then
error(S("This is not a multiplayer game! Please disable server hosting and try again."))
end

View File

@ -0,0 +1,2 @@
# textdomain: sf_no_multiplayer
This is not a multiplayer game! Please disable server hosting and try again.=Dies ist kein Mehrspielerspiel! Bitte deaktivieren Sie das Serverhosting und versuchen Sie es erneut.

View File

@ -0,0 +1,2 @@
# textdomain: sf_no_multiplayer
This is not a multiplayer game! Please disable server hosting and try again.=

View File

@ -0,0 +1 @@
name = sf_no_multiplayer