Commit 1f58b1b5 authored by nanahira's avatar nanahira

add player-joined match api

parent 15d436ab
Pipeline #42302 failed with stages
in 4 minutes and 14 seconds
...@@ -2421,6 +2421,11 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2421,6 +2421,11 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
room.welcome = "${athletic_arena_tip}" room.welcome = "${athletic_arena_tip}"
else else
room.welcome = "${entertain_arena_tip}" room.welcome = "${entertain_arena_tip}"
await call_match_api('POST', 'player-joined', {
username: client.name,
arena: room.arena,
roomname: room.name
})
when 5 when 5
title = info.pass.slice(8).replace(String.fromCharCode(0xFEFF), ' ') title = info.pass.slice(8).replace(String.fromCharCode(0xFEFF), ' ')
room = ROOM_find_by_title(title) room = ROOM_find_by_title(title)
......
...@@ -3188,6 +3188,11 @@ ...@@ -3188,6 +3188,11 @@
} else { } else {
room.welcome = "${entertain_arena_tip}"; room.welcome = "${entertain_arena_tip}";
} }
await call_match_api('POST', 'player-joined', {
username: client.name,
arena: room.arena,
roomname: room.name
});
} }
break; break;
case 5: case 5:
......
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