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.

Addon skUtilities 0.9.2

[Conversions|Files|& More] [Java 8+, Sk 2.2+]

  1. Files, Execute bash/batch code and more

    tim740
    Added:
    Code (Skript):
    1.  
    2. file %string% is a dir[ectory]
    3. file %string% is(n'| no)t a dir[ectory]
    4. #checks if path is dircetory
    5.  
    6. relative path of %string%
    7. %string%'s relative path
    8. #Gets relative path
    9.  
    10. short path of %string%
    11. %string%'s short path
    12. #Gets short path
    13.  
    14. on (bash|batch|sh) (command|cmd) (run|execute)
    15. #Event: Triggers when you use Run Command cancelable
    16.  
    17. run (bash|batch|sh) (command|cmd) %string%
    18. #Excutes command in skript
    19. #Windows: cmd /c <command>
    20.  
    21. [last ]output of executed (bash|batch|sh) (command|cmd)
    22. [last ]executed (bash|batch|sh) (command|cmd)'s output
    23. #Returns last executed command's output
    24.  
    25. system property (os arch|os name|os version|java home|user dir|user home|user name|user lang[uage]|user timezone|line separator|file separator|path separator|file encoding)
    26. #Gets a System property
    27.  
    28. (operating system|os) is (windows|mac|linux|unix|solaris|sun os|hp ux|aix|irix|free bsd|open bsd|net bsd)
    29. (operating system|os) is(n'| no)t (windows|mac|linux|unix|solaris|sun os|hp ux|aix|irix|free bsd|open bsd|net bsd)
    30. #Check's if your server's os is a certain os
    31.  
    Fixed Is File
    ExprLoaded Optimized
    Optimized other classes

    Now using bStats and mcStats (mcStats will be removed if it doesn't come back online in a later update!)

    -------------------------------------------------------------------------------------------------------------------------

    Disclaimer: This addon can damage your server if used wrong or used in malicious manner, Double checking code is Advised, I take no responsibility for any damage caused, I've tried to make this addon as powerful and non-restrictive as possible!
Return to update list...
  • About Us

    Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.
  • Support skUnity

    The staff team works very hard to make sure the community is running its best. This means constantly performing upgrades to systems and other features. This does cost a bit of money to keep doing. Donating to skUnity would allow the server to keep running smoothly for years to come!

    Support Us!
  • Join our Discord

    Discord is an all-in-one voice and text chat for gamers that’s free, secure, and works on both your desktop and phone.