mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Map name transfer
This commit is contained in:
parent
d50f205787
commit
8d56873335
@ -22,6 +22,9 @@ int ParseAndSend(SOCKET Client, std::string Data){
|
||||
case 'b' :
|
||||
FileSent = false;
|
||||
break;
|
||||
case 'M' :
|
||||
Response = MapName;
|
||||
break;
|
||||
}
|
||||
std::string FLocation = Data.substr(1);
|
||||
if(FileList.find(FLocation) == std::string::npos)return -1;
|
||||
|
@ -21,7 +21,7 @@ void Heartbeat()
|
||||
while(true)
|
||||
{
|
||||
PostHTTP("https://beamng-mp.com/heartbeat","uuid="+UUID+"&players="+to_string(PlayerCount)+"&maxplayers="+to_string(MaxPlayers)+"&port="
|
||||
+ to_string(UDPPort) + "&map=" + MapName + "&private="+State+"&serverversion="+ServerVersion+"&clientversion="+ClientVersion+"&name="+ServerName);
|
||||
+ to_string(UDPPort) + "&map=" + MapName + "&private="+State+"&version="+ServerVersion+"&clientversion="+ClientVersion+"&name="+ServerName);
|
||||
std::this_thread::sleep_for (std::chrono::seconds(5));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user