Commit 2ec6ae0d authored by nanahira's avatar nanahira

make posting score midduel customizable

parent a166c390
......@@ -110,6 +110,7 @@
"challonge": {
"enabled": false,
"post_detailed_score": true,
"post_score_midduel": true,
"cache_ttl": 60000,
"api_key": "123",
"tournament_id": "456"
......
......@@ -2866,7 +2866,7 @@ ygopro.stoc_follow 'CHANGE_SIDE', false, (buffer, info, client, server)->
ygopro.stoc_send_chat(client, "${side_remain_part1}#{client.side_tcount}${side_remain_part2}", ygopro.constants.COLORS.BABYBLUE)
, 60000
client.side_interval = sinterval
if settings.modules.challonge.enabled and client.pos == 0
if settings.modules.challonge.enabled and settings.modules.challonge.post_score_midduel and client.pos == 0
temp_log = JSON.parse(JSON.stringify(room.challonge_duel_log))
delete temp_log.winnerId
challonge.matches.update({
......
......@@ -3597,7 +3597,7 @@
}, 60000);
client.side_interval = sinterval;
}
if (settings.modules.challonge.enabled && client.pos === 0) {
if (settings.modules.challonge.enabled && settings.modules.challonge.post_score_midduel && client.pos === 0) {
temp_log = JSON.parse(JSON.stringify(room.challonge_duel_log));
delete temp_log.winnerId;
challonge.matches.update({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment