Fix and improve game check

master
HimbeerserverDE 2021-03-20 23:04:34 +01:00
parent 3db25c1467
commit 5863b40da9
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ minetest.register_chatcommand("lobby", {
if not player then return end
if not player:is_player() then return end
local current = sumo_duels.get_player_team(name)
if current = "arena_1" or current = "arena_2" or current = "arena_3" then return false, "You are in a game, dont try escape" end
if current:match("arena_%d+") then return false, "You are in a game, dont try escape" end
sumo_duels.set_lobby(name)
end,
})