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. btk5h

    Skript variables [Ram]

    You need to modify the default configuration, not create a new one. Variables will be saved to whichever database configuration matches the variable name. In order to prevent variables from being saved, you must make sure the variable name matches none of the database patterns.
  2. btk5h

    Skript variables [Ram]

    Do not name your variables {?!-variable}. The surrounding parts of (?!-) are part of a regular expression meaning "anything that doesn't start with -". Using that regular expression, you must start your variables with a -, like {-variable}. If you would like a deeper explanation of the regular...
  3. btk5h

    Skript variables [Ram]

    In your config.sk, change your database's pattern to look like (?!-).* You should end up with something that looks like this: default: type: CSV pattern: (?!-).* file: ./plugins/Skript/variables.csv backup interval: 2 hours The (?!-) part will not match variables...
  4. btk5h

    Addon skript-db

    skript-db doesn't support dates right now, so you'll need work around this using skript-db's unsafe expression to bypass SQL injection protection. set {_first login} to "'%year from date now%-%month from date now%-%day of month from date now% %hours from date now%:%minutes from date now%:00'"...
  5. btk5h

    Solved Database for dev32b

    My goal is to contribute to the Skript community, not to control it. I want my addons to be used because they solve specific issues really well, not just because the addon is already installed on the server. Whenever I see a radically different feature pop up in a large addon, it feels like the...
  6. btk5h

    skript-mirror

    If you already have an instance of the object, you don't need to import anything. You only need imports when you're creating a new instance of an object or if you're calling a static method.
  7. btk5h

    Addon skript-db

    This is a quirk caused by skript-db's automatic SQL injection protection. If you want to embed Skript expressions into a query, don't surround them in quotes or perform any escaping yourself. Skript-db will handle this part for you. Try removing the apostrophes around the expression like so...
  8. btk5h

    Addon skript-db

    btk5h submitted a new resource: skript-db - Sensible SQL support for Skript Read more about this resource...
  9. btk5h

    Addon skript-db 0.2.0

    What makes skript-db different from other SQL addons? Automatic SQL injection protection Support for connections to multiple databases An amazingly intuitive list variable system for reading query outputs Documentation/Source - Releases Quickstart on script load: set {sql} to the database...
  10. btk5h

    Solved Database for dev32b

    skript-db has what you're looking for. Skript-db's database support should be far more robust and much easier to work with than Skellett, featuring fast connection pool management, SQL injection protection, support for connections to multiple databases, and a powerful list variable mapping...
  11. btk5h

    Addon skript-mirror

    That shouldn't work. Skript lists are not interchangeable with Java lists.
  12. btk5h

    Addon skript-mirror

    The IJobDoneEvent you posted appears to use a custom event system instead of Bukkit's event system.
  13. btk5h

    Other Advanced event handling with skript-mirror

    Adding more examples wouldn't really have any benefits. The existing examples already cover the entirety of the feature. Even if I added more examples, they wouldn't showcase anything that would the documentation clearer.
  14. btk5h

    Addon skript-mirror - skript-mirror 0.7.1

    Check for the existence of the plugin folder before attempting to load libraries (#7)
  15. btk5h

    Addon skript-mirror - skript-mirror 0.7.0

    ⚠️ Breaking Changes Event priorities now use Bukkit's event priority names instead of numbers Allow the spread expression to spread iterables and iterators Fix casting to java types for older versions of Skript (#5) Load external libraries from skript-mirror's plugin folder (#6) Allow the...
  16. btk5h

    Other Advanced event handling with skript-mirror

    skript-mirror offers robust event support for scripts that need to: listen to events that aren't supported by Skript listen to multiple (even unrelated) events under the same event handler listen to events with a specific priority level Listening to custom events You can listen to any Bukkit...
  17. btk5h

    Addon skript-mirror - skript-mirror 0.6.0

    Allow custom events to be cancelled Automatically convert single-character strings to char, when necessary Add a cast expression (#1) Allow the spread expression to spread collections Add a utility expression for manipulating bits and ranges of bits
  18. btk5h

    Addon skript-mirror - skript-mirror 0.5.0

    Add a null object literal Add utilities for creating and unwrapping arrays Unwrap javatypes into classes when necessary Improve error messages
  19. btk5h

    Addon skript-mirror - skript-mirror 0.4.1

    Fix a ClassCastException due to mismatched empty arrays
  20. btk5h

    Addon skript-mirror - skript-mirror 0.4.0

    Add custom event support Add literals for true and false to fix some parser issues Implement getConvertedExpression to make Java calls more like variables