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 out 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 Glitching Signs?

Discussion in 'Skript' started by martinpeeters34, May 20, 2017.

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

    Joined:
    Jan 30, 2017
    Messages:
    30
    Likes Received:
    0
    I don't know how to fix this, but my Signs are glitching when I set a line of a Sign. It sets the line to the text, sets it back to the previous text, waits a few ticks, and puts it to the text I prefered.
    When I change them manually, this doesn't happen. I tried to wait a few ticks, but I think it's just a stupid mistake I made, or a simple MC-bug. :emoji_stuck_out_tongue_closed_eyes:

    Code (Skript):
    1.         else if arg-1 is "addsign":
    2.             if arg-2 is set:
    3.                 if targeted block is wall sign:
    4.                     loop {MW::GlobalStats::ListModes::*}:
    5.                         "%loop-value%" is "%arg-2%"
    6.                         set {_mode} to "%arg-2%"
    7.                     if {_mode} is set:
    8.                         add location of targeted block to {MW::GlobalSettings::SignWall::%{_mode}%::*}
    9.                         message "&6&lMusicWars &8| &aYou've added the Targeted Sign to the &f%{_mode}% Mode!" to player
    10.                         wait 1 tick
    11.                         set line 1 of targeted block to "&5&l&nMusicWars"
    12.                         if {MW::ArenaStats::ModeEnabled::%{_mode}%} is not set:
    13.                             set line 3 of targeted block to "&4&oMaintenance"
    14.                         else:
    15.                             set line 3 of targeted block to "&8&lSearching.."
    16.                     else:
    17.                         message "&6&lMusicWars &8| &cThis Mode doesn't exist!"
    18.                 else:
    19.                     message "&6&lMusicWars &8| &cYou need to target a Wall Sign!"
    20.             else:
    21.                 message "&6&lMusicWars &8| &cYou need to specify a Mode-name!"
    22.                        
    23.                    
    24.         else if arg-1 is "deletesigns":  
    25.             if arg-2 is set:
    26.                 loop {MW::GlobalStats::ListModes::*}:
    27.                     "%loop-value%" is "%arg-2%"
    28.                     set {_mode} to "%arg-2%"
    29.                 if {_mode} is set:
    30.                     loop {MW::GlobalSettings::SignWall::%{_mode}%::*}:
    31.                         set line 1 of block at loop-value to ""
    32.                         set line 2 of block at loop-value to ""
    33.                         set line 3 of block at loop-value to ""
    34.                         set line 4 of block at loop-value to ""
    35.                         wait 2 ticks
    36.                     delete {MW::GlobalSettings::SignWall::%{_mode}%::*}
    37.                     message "&6&lMusicWars &8| &aDeleted all Signs of the &f%{_mode}% Mode Wall!" to player    
     
  2. Best Answer:
    Post #2 by ShaneBee, May 20, 2017
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Mmm.. This looks simmelair To what i experienced before all i had to do was a restart.

    (Disclaimer can be the script you have written i haven't look deep in To iT.
    --- Double Post Merged, May 20, 2017, Original Post Date: May 20, 2017 ---
    If this doesn't work would like To Have a list of THE non skript plugins
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Oh wow.. Thanks, it worked :emoji_grin:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...