fix: Исправлено название метода отправки при генерации клиентского токена
This commit is contained in:
@@ -96,7 +96,7 @@ class PyG2O
|
|||||||
|
|
||||||
addEventHandler("onPlayerJoin", function(playerid){
|
addEventHandler("onPlayerJoin", function(playerid){
|
||||||
local new_token = _globalInstance.generateClientPassword();
|
local new_token = _globalInstance.generateClientPassword();
|
||||||
_globalInstance.send({"create_temp_token": new_token})
|
_globalInstance._send({"create_temp_token": new_token})
|
||||||
_clientTokens[playerid] = new_token;
|
_clientTokens[playerid] = new_token;
|
||||||
|
|
||||||
local packet = Packet();
|
local packet = Packet();
|
||||||
@@ -106,5 +106,5 @@ addEventHandler("onPlayerJoin", function(playerid){
|
|||||||
});
|
});
|
||||||
|
|
||||||
addEventHandler("onPlayerDisconnect", function(playerid, reason){
|
addEventHandler("onPlayerDisconnect", function(playerid, reason){
|
||||||
_globalInstance.send({"remove_temp_token": _clientTokens[playerid]});
|
_globalInstance._send({"remove_temp_token": _clientTokens[playerid]});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user