Use pvpplus.is_engaging_players() instead of tournament.engaging_players

master
upsilon 2017-09-03 14:18:24 +02:00
parent 5c7c9eaff9
commit 0a059c2ecc
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ minetest.register_chatcommand("engage", {
if pvpplus.is_playing_tournament(name) then
return false, "You are already playing a tournament."
end
if not tournament.engaging_players then
if not pvpplus.is_engaging_players() then
return false, "There is no opened tournament. Type /tournament!"
end
pvpplus.engage_player(name)