Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
be6cabb6
Commit
be6cabb6
authored
Jan 09, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
67a4be90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
i18n.json
i18n.json
+8
-2
ygopro-server.coffee
ygopro-server.coffee
+1
-1
No files found.
i18n.json
View file @
be6cabb6
...
...
@@ -3,12 +3,18 @@
"kicked_by_system"
:
" is kicked by system."
,
"random_duel_enter_room_waiting"
:
"Your opponent is waiting for you, start duel now!"
,
"random_duel_enter_room_new"
:
"entered new random duel room"
,
"random_duel_enter_room_match"
:
"match mode, please use powerful deck"
"random_duel_enter_room_match"
:
"match mode, please use powerful deck"
,
"random_banned_part1"
:
"You had been banned to use random duel because "
,
"random_banned_part2"
:
". The ban will last until "
,
"random_banned_part3"
:
"."
},
"zh-cn"
:
{
"kicked_by_system"
:
" 被系统请出了房间"
,
"random_duel_enter_room_waiting"
:
"对手已经在等你了,开始决斗吧!"
,
"random_duel_enter_room_new"
:
"已建立随机对战房间,正在等待对手!"
,
"random_duel_enter_room_match"
:
"您进入了比赛模式的房间,我们推荐使用竞技卡组!"
"random_duel_enter_room_match"
:
"您进入了比赛模式的房间,我们推荐使用竞技卡组!"
,
"random_banned_part1"
:
"因为您近期在游戏中多次"
,
"random_banned_part2"
:
",您已被禁止使用随机对战功能,将在"
,
"random_banned_part3"
:
"后解封"
}
}
\ No newline at end of file
ygopro-server.coffee
View file @
be6cabb6
...
...
@@ -206,7 +206,7 @@ ROOM_find_or_create_random = (type, player_ip)->
return
player_ip
==
bannedplayer
.
ip
if
bannedplayer
if
bannedplayer
.
count
>
6
and
moment
()
<
bannedplayer
.
time
return
{
"error"
:
"
因为您近期在游戏中多次
#{
bannedplayer
.
reasons
.
join
(
'、'
)
}
,您已被禁止使用随机对战功能,将在
#{
moment
(
bannedplayer
.
time
).
fromNow
(
true
)
}
后解封
"
}
return
{
"error"
:
"
${random_banned_part1}
#{
bannedplayer
.
reasons
.
join
(
'、'
)
}
${random_banned_part2}
#{
moment
(
bannedplayer
.
time
).
fromNow
(
true
)
}
${random_banned_part3}
"
}
if
bannedplayer
.
count
>
3
and
moment
()
<
bannedplayer
.
time
and
bannedplayer
.
need_tip
bannedplayer
.
need_tip
=
false
return
{
"error"
:
"因为您近期在游戏中
#{
bannedplayer
.
reasons
.
join
(
'、'
)
}
,在
#{
moment
(
bannedplayer
.
time
).
fromNow
(
true
)
}
内您随机对战时只能遇到其他违规玩家"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment