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.

Skript-mirror TRY STATEMENTS

Discussion in 'Addon Suggestions' started by MeHow, Jun 28, 2018.

  1. MeHow

    MeHow Active Member

    Joined:
    Feb 6, 2017
    Messages:
    140
    Likes Received:
    13
    Hello, I just wondering If @btk5h can add
    Code (Skript):
    1. try {
    2. }
    In skript maybe it can be like
    Code (Skript):
    1. try:
    Thanks for attention
     
  2. Snow-Pyon

    Moderator Resource Staff

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    There is a try effect already and MundoSK has a try-catch scope.
     
  3. MeHow

    MeHow Active Member

    Joined:
    Feb 6, 2017
    Messages:
    140
    Likes Received:
    13
    I don't use MundoSk. Skript-mirror should add try because it's java to skript addon
     
  4. btk5h

    Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    154
    Likes Received:
    158
    Skript-mirror's goal is not to port Java-specific language features to Skript.

    You can already suppress errors by prefixing java calls with try and use the last error to handle exceptions.
     
    • Informative Informative x 1

Share This Page

Loading...