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.
Make sure you have nodeJS installed. After that run the following command in a command terminal:
npm install cubedfilemanager -g
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.
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.
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.
When creating / saving / deleting a file, it will do the same on your file manager and send a message ingame when done.
You can report issues to me by sending me a dm in discord (Supercrafter100#6600). I am always open for suggestions for it.
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