[SOLVED] Very weird (title broadcast)

Discussion in 'Skript' started by DarioCas, Mar 16, 2019.

  1. Hey Guys!

    i have got a very weird problem:

    i have a command that only admins can use. all players are looped and then a title is sent to them. the funny thing is that only i get the title. does anyone know what to do?
    Other players do not recieve the title.

    And the console gives no errors.

    Code (Text):
    command /troll [<text>] [<offlineplayer>]:
        permission: troll.use
        permission message: {@prefix} &r&8ยป &cDazu hast du keine Rechte!
        trigger:
            if arg 1 is not set:
                if {troll.%player%} is false:
                    wait 10 ticks
                    set {troll.%player%} to true
                    hide the player from all players
                    set {vanish.%player%} to true
                    message "{@prefix} &7Der &eVanishMode &7ist nun &aaktiviert!"
                    message "{@prefix} &7Der &4TrollMode &7ist &ejetzt &aaktiviert!"
                else:
                    wait 10 ticks
                    set {troll.%player%} to false
                    reveal the player from all players
                    set {vanish.%player%} to false
                    message "{@prefix} &7Der &eVanishMode &7ist nun &cdeaktiviert!"
                    message "{@prefix} &7Der &4TrollMode &7ist &ejetzt &cdeaktiviert!"
                    stop
            if arg 1 is set:
                if {troll.%player%} is true:
                    if arg 1 is "hackmessage":
                        wait 10 ticks
                        loop all players:
                            wait 10 ticks
                            send loop-player title "&4Hacking &e1&8%%" with subtitle "&e527f3417-3a62-4515-b0f7-11f93c179821" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e2&8%%" with subtitle "&e9b061943-f816-4382-9911-a77175b19bb1" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e4&8%%" with subtitle "&efdeb5f5e-c498-4d53-80b3-25e430513db2" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e8&8%%" with subtitle "&e0c05471f-c555-4f4a-8c36-d55e7e116afc" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e10&8%%" with subtitle "&eb7826fab-a87f-45a4-a2f1-59cf11b2ff09" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e12&8%%" with subtitle "&ee5920b81-c5d3-4bc4-8474-6116485c1110" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e16&8%%" with subtitle "&ee9013c2f-da01-425f-a48b-516f55e94386" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e24&8%%" with subtitle "&e67ac79f6-0be5-41df-923e-21f8fe5d2fe7" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e28&8%%" with subtitle "&e0fa04163-73d3-462e-a55d-70e4887291aa" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e33&8%%" with subtitle "&e446af458-6b45-4068-bb8e-0d8f117b0f90" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e35&8%%" with subtitle "&e27f52abc-d280-4e17-b88c-3843879ef3ef" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e38&8%%" with subtitle "&e7b7662ad-947f-467a-94c5-c9d8cbce7b81" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e42&8%%" with subtitle "&e9abe5be2-60a1-446f-ab19-0d5eb1b13eac" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e46&8%%" with subtitle "&e5de4f0a2-0892-4058-a222-a017492660af" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e49&8%%" with subtitle "&ea14b2063-0842-4672-b698-542818ae0aae" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e52&8%%" with subtitle "&ef680df9b-ac5c-4d3f-9bac-75bc0e316afa" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e54&8%%" with subtitle "&eb2732392-fae1-40c3-b836-a066c6debd8f" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e56&8%%" with subtitle "&e4bce5d66-4666-4727-ba23-7e178c3d9655" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e59&8%%" with subtitle "&e8f265384-c73c-40d2-b79d-fea376e4b5e6" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e61&8%%" with subtitle "&e1b53405b-81ac-47cb-9e3b-40fce71e9bb1" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e64&8%%" with subtitle "&ee2909143-0baa-4db2-a939-0334c743bd36" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e67&8%%" with subtitle "&ec433a877-dd87-4b55-a5c5-47b35810a839" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e70&8%%" with subtitle "&ec1008367-ead8-49e5-8d5c-fb12df4eb1c1" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e72&8%%" with subtitle "&e1b06763d-1777-477f-9d5e-95ece804bd17" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e75&8%%" with subtitle "&eabda1a62-a769-41ea-a40c-b0160c5c74c2" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e77&8%%" with subtitle "&eb19035a3-33ff-481f-9d4d-19b97e90251d" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e79&8%%" with subtitle "&e537d059a-9489-4ee7-b9a7-eb2b74929728" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e81&8%%" with subtitle "&e80eb07c9-d96e-48b7-8f4b-0cfdd63f54f3" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e85&8%%" with subtitle "&ebff024da-348e-46ea-a4ba-ad2d1f111bd0" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e89&8%%" with subtitle "&edd4c362e-b31d-4902-a4c4-a85484cfc0a8" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e92&8%%" with subtitle "&e43c182c2-afb7-45ef-990d-af3f9c0debb6" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e95&8%%" with subtitle "&ea9d23a3d-4c29-44e2-ab00-bba11dff3df6" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e97&8%%" with subtitle "&ec726f3fc-1e84-4d8b-a5c5-6dc809db5e5a" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e99&8%%" with subtitle "&ec7da37e0-1551-4108-9dc2-05ac547948a8" for 0.5 seconds
                            wait 10 ticks
                            send loop-player title "&4Hacking &e100&8%%" with subtitle "&ed4ca3485-6cab-4f7a-aea7-7e0ff5fb6927" for 3 seconds
                            stop
    from where it says "if arg 1 is "Hackmessage:" ", it starts

    Thanks for every help!

    regards

    DarioCas
     
  2. Well your code is doing exactly what you wrote it to do. It loops all players, and waits 10 ticks per player everytime the title shows. And then the code gets stopped so only the first player from the `all players` expression gets to see it. The code does what its supposed to, you just didn't write it correctly. You have to loop all players for sending the titles, not for waiting. You might also be able to use the all players expression in the send title effect.
     
  3. Thank you!

    thread is now SOLVED
     
  4. little tips:
    1. use loops for numbers instead of wait 10 ticks per each
    2. use {variable::%player's uuid%} format instead of {variable.%player%}
    3. delete variables instead of setting them to false, false still keeps them in database
     
    • Agree Agree x 1
  5. You can mark this thread as solved:
    Go to the top of your thread, click Thread Tools then click on Edit Title, then click Prefix and change it to Solved.
     
  6. Does not work. have already tried it.
     
  7. I just found out the Skript section does not have a solved tag. You could change the title and have it have [SOLVED] at the start.
     
  8. did it (y)
     

Share This Page