SexScripts : Resource pack check - https://ss.deviatenow.com:443/viewtopic.php?f=4&t=1030 Page 1 of 1

Resource pack check

taylors1643 [ Sun Mar 28, 2021 12:44 am ]

Hey,

What’s the best way to do a check to confirm all resource packs have been downloaded at the start of a script.

Can I do a check to confirm a specific image folder exists and return true?

Or can I check for an specific image in that folder?

Thanks,
Steve

Re: Resource pack check

doti [ Tue Apr 13, 2021 12:09 pm ]

Yes, you can simply check that a file exists
Code:
def datadir = getDataFolder();
if(!new File(dir+"/images/myscript/x.jpeg").exists()) {
// problem
}

Page 1 of 1 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011