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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
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
nanahira
srvpro
Commits
47abb576
Commit
47abb576
authored
Aug 18, 2021
by
mercury233
Committed by
GitHub
Aug 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add higher version hint (#44)
parent
3665559a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
data/default_config.json
data/default_config.json
+2
-1
ygopro-server.coffee
ygopro-server.coffee
+1
-1
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
data/default_config.json
View file @
47abb576
...
...
@@ -20,7 +20,8 @@
},
"modules"
:
{
"welcome"
:
"MyCard YGOPro Server"
,
"update"
:
"请更新游戏版本"
,
"update"
:
"请更新你的客户端版本"
,
"wait_update"
:
"你的客户端版本高于服务器版本,请等待服务器更新"
,
"stop"
:
false
,
"side_timeout"
:
false
,
"replay_delay"
:
true
,
...
...
ygopro-server.coffee
View file @
47abb576
...
...
@@ -2054,7 +2054,7 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
await
client
.
open_cloud_replay
(
replay
)
else
if
info
.
version
!=
settings
.
version
and
!
settings
.
alternative_versions
.
includes
(
info
.
version
)
ygopro
.
stoc_send_chat
(
client
,
settings
.
modules
.
update
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send_chat
(
client
,
(
if
info
.
version
<
settings
.
version
then
settings
.
modules
.
update
else
settings
.
modules
.
wait_update
)
,
ygopro
.
constants
.
COLORS
.
RED
)
ygopro
.
stoc_send
client
,
'ERROR_MSG'
,
{
msg
:
4
code
:
settings
.
version
...
...
ygopro-server.js
View file @
47abb576
...
...
@@ -2741,7 +2741,7 @@
replay
=
(
await
dataManager
.
getRandomCloudReplay
());
await
client
.
open_cloud_replay
(
replay
);
}
else
if
(
info
.
version
!==
settings
.
version
&&
!
settings
.
alternative_versions
.
includes
(
info
.
version
))
{
ygopro
.
stoc_send_chat
(
client
,
settings
.
modules
.
update
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send_chat
(
client
,
(
info
.
version
<
settings
.
version
?
settings
.
modules
.
update
:
settings
.
modules
.
wait_update
)
,
ygopro
.
constants
.
COLORS
.
RED
);
ygopro
.
stoc_send
(
client
,
'
ERROR_MSG
'
,
{
msg
:
4
,
code
:
settings
.
version
...
...
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