Search results

  • 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 community!

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

  1. PatoFrango

    Solved How to make doors

    Sure is possible. Something like this maybe? on rightclick with gold nugget: # if the player has said permission if player has permission "keymaster": if {doorOpen} is not set: # open door set {doorOpen} to true set block at location at 42, 42...
  2. PatoFrango

    Solved Days since date

    Hi, Is there a way to get the number of days since a specific date (without SkStuff)? Thanks in advance. EDIT: Solved function daysSince(d: date) :: integer: set {_diff} to floor((unix timestamp of now - unix timestamp of {_d}) / 86400) return {_diff} A Unix timestamp is the amount...
  3. PatoFrango

    Vixio interfering with name of %itemstack% expression

    Hi, I installed Vixio the other day and thanks to it I can no longer get the name of an item, because Vixio thinks I'm referring to the name of a Discord channel/server. set {_name} to name of {_item} The variable won't be set to anything. Is there a way to fix this? Thanks in advance. Ok so...
  4. PatoFrango

    Send resource pack with skript-mirror

    I just realized using a new hash won't change anything. Even if I don't specify a hash, the server should always download the file no matter how many times a player joins, but the problem is it doesn't care if the file has changed or not, it will always download the old version of the file. If I...
  5. PatoFrango

    Send resource pack with skript-mirror

    That's a great idea, didn't know it was possible. How would I do that? In this case, how would I save a file into a variable?
  6. PatoFrango

    Send resource pack with skript-mirror

    Please create your own thread.
  7. PatoFrango

    Send resource pack with skript-mirror

    Ok so forget about the hash then. If I don't specify a hash, the same thing happens. I upload the new pack, but the old one gets downloaded. What I'm looking for is for the RP automatically update when it notices the new file isn't equal to the old one, although if they are equal, the cached one...
  8. PatoFrango

    Send resource pack with skript-mirror

    I had no idea it worked that way. What do you mean "provide the hash from the resource pack"? EDIT: Oh, like creating a new hash for the new file?
  9. PatoFrango

    Send resource pack with skript-mirror

    The dropbox link is always the same because the name of the file is the same. For the hash, I put the same as the old file. I don't need to create a new hash every time I update the pack, do I? Cause that ruins the whole point of having a hash. I wanted the process of developing textures and...
  10. PatoFrango

    Send resource pack with skript-mirror

    I use Spigot and as I'm not sure if Paper would break anything, it'd be better if it stayed this way. Ok so turns out I'm a fucking idiot. I had two different versions of skript-mirror installed at the same time. But guess what? IT STILL DOESN'T WORK! Now no error shows up. The resource pack...
  11. PatoFrango

    Send resource pack with skript-mirror

    function sendRP(p: player): set {_link} to "myurl.zip" set {_hash} to "5257841ed159c6ee435e593db4951af8c724037b" set {_convertedHash} to DatatypeConverter.parseHexBinary({_hash}) {_p}.setResourcePack({_link}, {_convertedHash}) Same error [WARNING] [Skript] No matching method...
  12. PatoFrango

    Send resource pack with skript-mirror

    Ok so using the slash thing worked function sendRP(p: player): set {_link} to "myurl.zip" set {_hash} to {_link} hashed with MD5 {_p}.setResourcePack("%{_link}%/%{_hash}%") The resource pack gets sent and I'm able to download it, but if I change add any textures to it the RP doesn't...
  13. PatoFrango

    Send resource pack with skript-mirror

    import: org.bukkit.entity.Player javax.xml.bind.DatatypeConverter function sendRP(p: player): set {_link} to "mylink.zip" set {_hash} to {_link} hashed with MD5 DatatypeConverter.parseHexBinary({_hash}) {_p}.setResourcePack({_link}, {_hash}) So this is my current code...
  14. PatoFrango

    Send resource pack with skript-mirror

    I did double the "%", the url was inside of a variable so it just shows up like that in the console. I have no idea what a CraftPlayer is but I'm gonna try to look into it (although I don't think this what's causing it as calling the method without the hash works just fine) and wdym with cast...
  15. PatoFrango

    Send resource pack with skript-mirror

    Okay thanks. Okay so if I use the method without the hash it will work just fine but when I add it the RP won't load. Help! EDIT: this is the error that shows up (i hid the resource pack link)
  16. PatoFrango

    Send resource pack with skript-mirror

    Ok so I edited your code a bit so it fits more what i'm looking for import: org.bukkit.entity.Player function sendRP(p: player): {_p}.setResourcePack("pack.zip") side question: do I really need to import that thing?
  17. PatoFrango

    Send resource pack with skript-mirror

    Well I haven't tested it yet, hope it does lol
  18. PatoFrango

    Send resource pack with skript-mirror

    Woah, alright thank you!