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

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    108
    Likes Received:
    11
    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,213
    Likes Received:
    168
    Medals:
    There is a try effect already and MundoSK has a try-catch scope.
     
  3. M

    MeHow Well-Known Member

    Joined:
    Feb 6, 2017
    Messages:
    108
    Likes Received:
    11
    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:
    151
    Likes Received:
    149
    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
Loading...