Move files from Scripts/ to src/ and add 'on' to start server. #144

Merged
Sirherobrine23 merged 8 commits from Changes-and-move-Scripts-dir into main 2021-08-02 22:33:21 +00:00
Showing only changes of commit af86cfaee5 - Show all commits

View File

@ -206,8 +206,8 @@ function Player_Json(data = "aaaaaa\n\n\naa", callback = () => {}){
}).filter(a=>a);
callback(BedrockMap);
}
// Java
else if (Current_platorm === "java") {
// Java and Pocketmine-MP
else if (Current_platorm === "java" || Current_platorm === "pocketmine") {
const JavaMap = data.split(/\n|\r/gi).map(line => {
if (line.trim().includes("joined the game") || line.includes("left the game")) {
line = line.replace(/^\[.+\] \[.+\/.+\]:/, "").trim();
@ -228,6 +228,8 @@ function Player_Json(data = "aaaaaa\n\n\naa", callback = () => {}){
}).filter(a=>a);
callback(JavaMap);
}
// JSPrismarine
// else if (Current_platorm === "jsprismarine") console.log("It's still not working");
}
const UpdateUserJSON = function (New_Object = new Array()){