Update Players_json.js #251

Merged
Sirherobrine23 merged 1 commits from Sirherobrine23-patch-to-bedrock into main 2021-11-28 16:53:02 +00:00

View File

@ -10,7 +10,7 @@ function CreatePlayerJson(data = "", callback = (d = [{Player: "", Action: "conn
const BedrockMap = data.split(/\n|\r/gi).map(line => {
if (line.includes("connected")) {
let Actions = "";
if (/^disconnected/.test(line)) Actions = "disconnect"; else Actions = "connect";
if (/disconnected|disconnected.*:/.test(line)) Actions = "disconnect"; else Actions = "connect";
// Object Map
const ObjectReturn = {