Solved Cant make nextline on lore work.

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

DoctorHyper

Member
Jul 22, 2017
19
0
1
22
This shows when I do %nl%, I tried everything but it didnt work!
upload_2020-2-20_23-23-22.png

Version: 1.12.2
Skript Version: 2.4


Code:
Code:
command /punish [<player>]:
    aliases: /pun
    permission: server.punish
    trigger:
        if arg-1 is not set:
            send "&cPlease Set A Player (/punish &fTC6&c)"
        if arg-1 is set:
            open chest with 3 rows named "&eSelect the staff role!" to player
            wait 1 tick
            format slot 10 of player with Blue Wool named "&9Trial-Mod" with lore "test%nl%test" to close then run [execute player command "/nothing"]
            format slot 12 of player with Lime Wool named "&2Mod" with lore "test" to close then run [execute player command "/nothing"]
            format slot 14 of player with Green Wool named "&2Sr.Mod" with lore "test" to close then run [execute player command "/nothing"]
            format slot 16 of player with Red Wool named "&cAdmin" with lore "test" to close then run [execute player command "/nothing"]
 
Depending on your skript version you might have to do
Code:
format slot 10 of player with Blue Wool named "&9Trial-Mod" with lore "test", "test" to close then run [execute player command "/nothing"]
 
Use the example of Goose.

Your Skript Version is 2.4 what means,you Need to use "||" to do a new line.

Heres your Skript edited:

Code:
command /punish [<player>]:
    aliases: /pun
    permission: server.punish
    trigger:
        if arg-1 is not set:
            send "&cPlease Set A Player (/punish &fTC6&c)"
        if arg-1 is set:
            open chest with 3 rows named "&eSelect the staff role!" to player
            wait 1 tick
            format slot 10 of player with Blue Wool named "&9Trial-Mod" with lore "test||test" to close then run [execute player command "/nothing"]
            format slot 12 of player with Lime Wool named "&2Mod" with lore "test" to close then run [execute player command "/nothing"]
             format slot 14 of player with Green Wool named "&2Sr.Mod" with lore "test" to close then run [execute player command "/nothing"]
            format slot 16 of player with Red Wool named "&cAdmin" with lore "test" to close then run [execute player command "/nothing"]

Please mark the thread as solved if you solved your problem.
 
  • Like
Reactions: DoctorHyper
Ye thanks all for helping idk why | | also doesnt work... but the one that @Farid said worked so thank you all for your help :emoji_slight_smile:
 
Status
Not open for further replies.