ARK加入控制
ARK Join Control
76561198102235069
Steam工坊
预览截图
1 张图片
主预览图
左右滑动查看更多 · 点击图片查看原图
模组介绍
也可用于您的 Atlas 服务器:https://steamcommunity.com/sharedfiles/filedetails/?id=1628872141&tscn=1548237727
查看英文原文
Also available for your Atlas server: https://steamcommunity.com/sharedfiles/filedetails/?id=1628872141&tscn=1548237727
Reclaim control of your server
The purpose of this mod it to gain control of the players connecting to your server. ARK has an exclusive join system that is unfortunately difficult to use, while it does prevent players from connecting to a server who are not on the list the actual list can not be easily be updated without human intervention.
Join Control will allow admins to setup and control who can connect via a web interface. An example being a web form for a Role Play server that allows players to join after completion. This is limited only by your imagination and technical ability.
This mod is not for every one, firstly it requires that you are able to set up a web server to handle and format JSON data. Setting this up or showing you how to do it is beyond the scope of this web page. You are on your own, google is your friend, although I have provided some example code in the Discussions.
When a player connects to the server it will send an HTTP GET request to the web server, like so:
Your web server will respond with some JSON like this:
The allowed field is the join control, 0 = Not Allowed and will be kicked, a 1 will allow the player to remain on the server.
Anything else. It does not impose any restrictions on how you receive and respond to the request other that the format of the HTTP requests and the JSON that is returned. You can use any web server, database or language you wish. But you already knew that right? If you didn't then this mod is not for you.
All interactions are recorded in the server log, the the full URL and variables in the request, and the received JSON to help with any setup issues you might have. The server should be run with this command line switch:
Example log output:
There are three settings, the URL (must NOT include the http://) and a Kick message. Finally a boolean for using of https or http.
You may if you wish use custom kick message for your players. The order for kick messages is the mod default of "You cannot pass" which can be overridden in the ini file. Finally you can add a special kick message in the JSON that will be used instead of the mod or ini message.
This mod/code/work is protected by the Attribution-NonCommercial-NoDerivatives 4.0 International Creative Commons License.
Join Control
Reclaim control of your server
The purpose of this mod it to gain control of the players connecting to your server. ARK has an exclusive join system that is unfortunately difficult to use, while it does prevent players from connecting to a server who are not on the list the actual list can not be easily be updated without human intervention.
Join Control will allow admins to setup and control who can connect via a web interface. An example being a web form for a Role Play server that allows players to join after completion. This is limited only by your imagination and technical ability.
Who is the mod for?
This mod is not for every one, firstly it requires that you are able to set up a web server to handle and format JSON data. Setting this up or showing you how to do it is beyond the scope of this web page. You are on your own, google is your friend, although I have provided some example code in the Discussions.
How does it work?
When a player connects to the server it will send an HTTP GET request to the web server, like so:
http://YOUR-URL?steam_id=PLAYERS-STEAM-ID
Your web server will respond with some JSON like this:
{"steam_id":"PLAYERS-STEAM-ID","allowed":"0"}
The allowed field is the join control, 0 = Not Allowed and will be kicked, a 1 will allow the player to remain on the server.
What this mod does not do
Anything else. It does not impose any restrictions on how you receive and respond to the request other that the format of the HTTP requests and the JSON that is returned. You can use any web server, database or language you wish. But you already knew that right? If you didn't then this mod is not for you.
Server Log
All interactions are recorded in the server log, the the full URL and variables in the request, and the received JSON to help with any setup issues you might have. The server should be run with this command line switch:
-servergamelog
Example log output:
2017.07.04_09.22.12: Info - JC - JoinControl - Player attempting to join the server: 76561198102235069
2017.07.04_09.22.12: Info - JC - JoinControl - Sending HTTP GET request: http://************?steam_id=76561198102235069
2017.07.04_09.22.12: Info - JC - JoinControl - Recieved HTTP Response: {"steam_id":"76561198102235069","allowed":"1","kick":"Yeah Nah Bro"}
2017.07.04_09.22.12: Info - JC - JoinControl - Is 76561198102235069 allowed to join: Yes
INI Settings
There are three settings, the URL (must NOT include the http://) and a Kick message. Finally a boolean for using of https or http.
URL=url-goes-here
Kick="You shall not pass"
https=false
Optional custom kick messages
You may if you wish use custom kick message for your players. The order for kick messages is the mod default of "You cannot pass" which can be overridden in the ini file. Finally you can add a special kick message in the JSON that will be used instead of the mod or ini message.
{"steam_id":"PLAYERS-STEAM-ID","allowed":"0","kick":"Yeah Nah Bro"}
This mod/code/work is protected by the Attribution-NonCommercial-NoDerivatives 4.0 International Creative Commons License.