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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Line breaks not working

Discussion in 'Skript' started by Parrothead, Aug 15, 2019.

Thread Status:
Not open for further replies.
  1. Parrothead

    Parrothead Active Member

    Joined:
    Feb 1, 2017
    Messages:
    27
    Likes Received:
    3
    Skript: Skript bensku-2.4-beta5
    Paper: 1.14.4

    Hi,
    I'm Updating my server from 1.12 to 1.14.4 and all of my lore line separators (e.x. '||' ) are broken. Example below. Using alternatives like '%nl%', '%newline%', and '\n' also give me no results.

    Code (Text):
    1. !give player sword with lore "Lore1||Lore2"
    upload_2019-8-15_8-21-51.png
    ----------------------------
    I see that the doc recommends the following code, and it does work, but I need the dynamic-ness of 1 string when coding.

    Code (Text):
    1. set {_test} to stone with lore "line 1" and "line 2"
    If anybody knows if it was changed I would appreciate the help.
    Thank you.

     

    Attached Files:

  2. Best Answer:
    Post #3 by ShaneBee, Aug 15, 2019
  3. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    304
    Likes Received:
    20
    Malia Core is for 1.14.4 (ready for) and has that on the first lines (14 at the moment), addons I use are:
    [​IMG]
     
    • Useful Useful x 1
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    The reason for the change:
    The double bar "||" is from SkQuery, because Skript never had a `with lore ""` expression before.
    Skript added a proper with lore expression in 2.3, which uses lists, ie: `with lore "blah", "blah" and "blah"`, that being said, SkQuery removed the lore expression along with the double bars.

    Your best bet at this point is to accept the change and keep with the consistency of the updates, and start using lore lists.
     
    • Like Like x 1
  5. Parrothead

    Parrothead Active Member

    Joined:
    Feb 1, 2017
    Messages:
    27
    Likes Received:
    3
    Thank you.
     
    • Friendly Friendly x 2
Thread Status:
Not open for further replies.
Loading...