Skip to content

JeroenoBoy/cubedfilemanager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CubedFileManager

CubedFileManager is a tool made for auto uploading your files to the Cubedcraft playerservers. It is mainly made for skript and the default settings (no parameters) will make it ready for skript use.

Installation

Make sure you have nodeJS installed. After that run the following command in a command terminal:

npm install cubedfilemanager -g

Usage

To use the package. Open the command terminal, and type

cd <directory>

After doing this you should be in the folder where your scripts are located at / where you want to make them.

Starting without manually grabbing the cookie.

If you dont want to get the PHPSESSID yourself, you can start the system with

cfm . 

This will ask your for your login details and what server you wish to work on.

Starting by grabbbing the cookie yourself.

If you want to get the token yourself, you may follow the steps below.

go to the Playerservers File manager and look for the cookie called PHPSESSID. Copy the content of it.

To start the program, execute the following:

cfm . --session=<phpsessid here>

It will check if the token is valid, and install the required script if it doesnt exist already. When finished it will show you the dashboard url.

What happens next?

When creating / saving / deleting a file, it will do the same on your file manager and send a message ingame when done.

Reporting issues

You can report issues to me by sending me a dm in discord (Supercrafter100#6600). I am always open for suggestions for it.

Changelog

version 2.0.0:

  • Revamped the complete code

  • Added a function so you don't have to grab the cookie yourself

  • Added folder support (--fs or --foldersupport)

  • Removed the function that auto creates the file on your manager if it doesnt exist yet

  • If you want it to auto log you in, you can go to the place where this package is saved, and add a .env file containing the following:

USER=yourusernametologinwith
PASS=yourpassword

#	optional
SERVER=yourserver

About

A npm package for file uploading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%