Resource icon

API FTP API (Upload and Download to another FTP) 0.1

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Contributors
blueyescat
Supported Minecraft Versions
  1. 1.12
With this small skript-api you can upload and download a file from an FTP.


Created on September 19th 2018 by Anarchick (FR)
Last edit on September 19th 2018


Need the addon skript-mirror , tested on spigot-1.12.2 , skript-mirror version 0.19.0, java version 1.8.0_144
BECAREFULL > the class org.apache.commons.net.ftp does not exist on spigot, you have to download it from here https://commons.apache.org/proper/commons-net/download_net.cgi
after the download, you have to create the folder "plugins/skript-mirror/libraries" and put the "commons-net-3.6.jar" from the download in this created folder !


To connect to your FTP you have to edit somes lines in function getFTP()
NOTE > You can add multiple FTP

How to use this API:
ftpDownload(1, "test/eula_from_ftp.txt", "minecraft/eula.txt")
ftpUpload(1, "test/eula_from_ftp.txt", "minecraft/eula_from_local.txt")
  • Like
Reactions: Uzumaki
Author
aeim
Downloads
695
Views
695
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest reviews

Can you make a SFTP version of this. <3 Thank you.