CLI Color and Modifications actions relelases #163
@@ -2,12 +2,12 @@
|
|||||||
try {
|
try {
|
||||||
const bds = require("../../index");
|
const bds = require("../../index");
|
||||||
await bds.download("latest", true);
|
await bds.download("latest", true);
|
||||||
console.log("Api:", await bds.api());
|
console.log("Api:", bds.api());
|
||||||
console.log("Backup:", await bds.backup());
|
console.log("Backup:", bds.backup());
|
||||||
console.log("Detect Server:", await bds.detect());
|
console.log("Detect Server:", bds.detect());
|
||||||
console.log("Kill Server:", await bds.kill());
|
console.log("Kill Server:", bds.kill());
|
||||||
console.log("Get Config:", await bds.get_config());
|
console.log("Get Config:", bds.get_config());
|
||||||
console.log("Start:", await bds.start());
|
console.log("Start:", bds.start());
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("Kill Server:", bds.kill());
|
console.log("Kill Server:", bds.kill());
|
||||||
}, 1 * 30 * 1000);
|
}, 1 * 30 * 1000);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ function Backup() {
|
|||||||
bedrock: GetServerPaths("bedrock"),
|
bedrock: GetServerPaths("bedrock"),
|
||||||
java: GetServerPaths("java"),
|
java: GetServerPaths("java"),
|
||||||
pocketmine: GetServerPaths("pocketmine"),
|
pocketmine: GetServerPaths("pocketmine"),
|
||||||
jsprismarine: GetServerPaths("jsprismarine")
|
spigot: GetServerPaths("spigot"),
|
||||||
}
|
}
|
||||||
const CurrentDate = new Date();
|
const CurrentDate = new Date();
|
||||||
const name = `Bds_Maneger_Core_Backups_${CurrentDate.getDate()}-${CurrentDate.getMonth()}-${CurrentDate.getFullYear()}.zip`
|
const name = `Bds_Maneger_Core_Backups_${CurrentDate.getDate()}-${CurrentDate.getMonth()}-${CurrentDate.getFullYear()}.zip`
|
||||||
|
|||||||
Reference in New Issue
Block a user