get file from project and create file to server

Discussion in 'Plugin Development' started by Kolia1_1, Oct 5, 2019.

  1. Offline

    Kolia1_1

    I need to get a file from src and paste it into the worlds


    upload_2019-10-5_14-2-53.png upload_2019-10-5_14-3-6.png
     
  2. Offline

    timtower Moderator Moderator

    @Kolia1_1 saveResource I believe
    But might be better to just have a separate folder with the backup
     
  3. Offline

    Kolia1_1

    give me example
     
  4. Offline

    timtower Moderator Moderator

    Not at a computer for a while, so can't.
     
  5. Offline

    Sir_Jonn

    Just export the folder onto the actual server, on your onEnable load up the original world and make an copy from it. It'll be better than having it in your project
     

Share This Page