Move files from Scripts/ to src/ and add 'on' to start server. #144
@ -206,8 +206,8 @@ function Player_Json(data = "aaaaaa\n\n\naa", callback = () => {}){
|
|||||||
}).filter(a=>a);
|
}).filter(a=>a);
|
||||||
callback(BedrockMap);
|
callback(BedrockMap);
|
||||||
}
|
}
|
||||||
// Java
|
// Java and Pocketmine-MP
|
||||||
else if (Current_platorm === "java") {
|
else if (Current_platorm === "java" || Current_platorm === "pocketmine") {
|
||||||
const JavaMap = data.split(/\n|\r/gi).map(line => {
|
const JavaMap = data.split(/\n|\r/gi).map(line => {
|
||||||
if (line.trim().includes("joined the game") || line.includes("left the game")) {
|
if (line.trim().includes("joined the game") || line.includes("left the game")) {
|
||||||
line = line.replace(/^\[.+\] \[.+\/.+\]:/, "").trim();
|
line = line.replace(/^\[.+\] \[.+\/.+\]:/, "").trim();
|
||||||
@ -228,6 +228,8 @@ function Player_Json(data = "aaaaaa\n\n\naa", callback = () => {}){
|
|||||||
}).filter(a=>a);
|
}).filter(a=>a);
|
||||||
callback(JavaMap);
|
callback(JavaMap);
|
||||||
}
|
}
|
||||||
|
// JSPrismarine
|
||||||
|
// else if (Current_platorm === "jsprismarine") console.log("It's still not working");
|
||||||
}
|
}
|
||||||
|
|
||||||
const UpdateUserJSON = function (New_Object = new Array()){
|
const UpdateUserJSON = function (New_Object = new Array()){
|
||||||
|
Reference in New Issue
Block a user