Commit 45c95767 authored by mercury233's avatar mercury233

add show roomname

parent 357271e2
......@@ -544,11 +544,15 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
when '/help'
ygopro.stoc_send_chat(client,"YGOSrv233 指令帮助")
ygopro.stoc_send_chat(client,"/help 显示这个帮助信息")
ygopro.stoc_send_chat(client,"/roomname 显示当前房间的名字")
ygopro.stoc_send_chat(client,"/tip 显示一条提示") if settings.modules.tips
when '/tip'
ygopro.stoc_send_random_tip(client) if settings.modules.tips
when '/roomname'
ygopro.stoc_send_chat(client,"您当前的房间名是 " + client.room.name) if client.room
return cancel
ygopro.ctos_follow 'UPDATE_DECK', false, (buffer, info, client, server)->
......
......@@ -644,6 +644,11 @@
if (settings.modules.tips) {
ygopro.stoc_send_random_tip(client);
}
break;
case '/roomname':
if (client.room) {
ygopro.stoc_send_chat(client, "您当前的房间名是" + client.room.name);
}
}
return cancel;
});
......
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