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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Download File to Player's Desktop

Discussion in 'Requests' started by StretchPvP, Apr 25, 2017.

Tags:
  1. StretchPvP

    StretchPvP New Member

    Joined:
    Jan 26, 2017
    Messages:
    7
    Likes Received:
    0
    Category:
    ?
    Suggested name:
    Downloader
    What I want:
    A Skript that downloads a file (from a URL) after a command has been executed.
    Ideas for commands:
    /download
    Ideas for permissions:
    [N/A]
    When I'd like it by:
    As soon as possible.
    Note:
    I've already attempted to make this and failed to do so. with:
    Code (Skript):
    1. download from "[URL]" to "Desktop"
    Please make sure the Skript works!
    Thanks!
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Why should this exist? You could forcefully inject a virus to someones PC! I seriously hope no one ever ads this to Skript.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I'm using this to allow players to download TeamSpeak just by clicking a block in an inventory.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Just link them to the direct download then.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    How can I do that without using JSON in the chat?
     
    #5 ShaneBee, Apr 26, 2017
    Last edited by a moderator: Apr 26, 2017
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Just message the link??
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Yes.
    Use Rezz's json.sk.
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    That's exactly what I trying not to do, use the chat. I'm using the inventory by itself, or a command. If the command can open a link (WITHOUT DISPLAYING ANYTHING IN CHAT) then that would work.

    For future reference: I am not using JSON, or anything displaying any message in the chat.
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    You'll need some more advanced Skripting knowledge then.
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Not possible.

    Links can only be opened if a player either clicks on a url or json message in chat.
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I was going to say it wasn't possible but I didn't know if it was. xD
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Then what is the 'download to' effect for?
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Where?
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    It is to download files to your server. You can't download files to players, for security reasons.
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    May I ask what addon this is in?
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    So how would I ago about doing this? I can settle for using a link, instead of a direct download. The idea is to not use chat, because of a static inventory (can't close it while a player is frozen by staff). So I need something that will open a link, or download the software from the link.
     
    #16 ShaneBee, Apr 27, 2017
    Last edited by a moderator: Apr 27, 2017
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Not directly possible, you need to use chat. You could just have text if you want saying to go TeamSpeak to download it.
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    As said before, you can't force a player to open a link and even less make he download something. The link can only be opened by the player when he clicks in the chat.

    @BrettPlayMC I don't remember exactly which new addon does have it, but I'm pretty sure that SkUtilities does have that download effect.
     
    BrettPlayMC likes this.
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Thanks for the help guys. I think I'll just have the URL in the item lore.
     

Share This Page

Loading...