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.

[NO ERRORS] Please help

Discussion in 'Skript' started by jotoko3, Oct 13, 2019.

  1. jotoko3

    jotoko3 Member

    Joined:
    Apr 27, 2018
    Messages:
    4
    Likes Received:
    0
    This command doesn't do anything, not even when i type it in the chat manually.
    What can I do to fix it?
    OBS: there are 0 errors when i reload the skript, and I've tried a lot of stuff to fix this, i can't get anything to work

    btw, don't think about the fact that it's not in english. It's danish :emoji_grinning:


    EDIT!!: It's only the GUI part that doesn't work. If i type /mute2 <player> 15, it works fine, but it just doesn't wanna open up the GUI?

    Code (Text):
    1. options:
    2.     servernavn: &7[&9&lG&c&lo&e&lo&9&lg&a&ll&c&le &d&lPrison&7]
    3.    
    4.     #Block til flere tider
    5.     fleretider: yellow wool
    6.    
    7.     #Mute tider i minutter
    8.     mute.sprog: 15
    9.     mute.spam: 10
    10.     mute.caps: 5
    11.  
    12. command /mute2 [<player>] [<number>]:
    13.     permission: server.admin
    14.     permission message: &cDu har ikke adgang til denne command!
    15.     trigger:
    16.         if arg-2 is not set:
    17.             wait 10 ticks
    18.             open chest with 1 row named "&4&lMUTE - &c%arg-1% - &6Flere tider" to player
    19.             wait 3 ticks
    20.             format slot 0 of player with {@fleretider} named "&615 Minutter" with lore "&eKlik for at mute &4%arg-1% &ci &415 minutter" to close then run [player command "/mute2 %arg-1% 15"]
    21.             format slot 1 of player with {@fleretider} named "&630 Minutter" with lore "&eKlik for at mute &4%arg-1% &ci &430 minutter" to close then run [player command "/mute2 %arg-1% 30"]
    22.             format slot 2 of player with {@fleretider} named "&61 Time" with lore "&eKlik for at mute &4%arg-1% &ci &41 Time" to close then run [player command "/mute2 %arg-1% 1"]
    23.             format slot 3 of player with {@fleretider} named "&62 Timer" with lore "&eKlikKlik for at mute &4%arg-1% &ci &42 Timer" to close then run [player command "/mute2 %arg-1% 2"]
    24.             format slot 4 of player with {@fleretider} named "&64 Timer" with lore "&eKlikKlik for at mute &4%arg-1% &ci &44 Timer" to close then run [player command "/mute2 %arg-1% 4"]
    25.             format slot 5 of player with {@fleretider} named "&68 Timer" with lore "&eKlikKlik for at mute &4%arg-1% &ci &48 Timer" to close then run [player command "/mute2 %arg-1% 8"]
    26.             format slot 6 of player with {@fleretider} named "&624 Timer" with lore "&eKlikKlik for at mute &4%arg-1% &ci &424 Timer" to close then run [player command "/mute2 %arg-1% 24"]
    27.             format slot 7 of player with {@fleretider} named "&62 Døgn" with lore "&eKlikKlik for at mute &4%arg-1% &ci &42 Døgn" to close then run [player command "/mute2 %arg-1% 48"]
    28.             format slot 8 of player with {@fleretider} named "&61 Uge" with lore "&eKlikKlik for at mute &4%arg-1% &ci &41 Uge" to close then run [player command "/mute2 %arg-1% 168"]
    29.         if arg-2 is 15:
    30.             set {mute.%arg-1%} to 1
    31.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &415 minutter &caf &4%player%"
    32.             wait 15 minutes
    33.             if {mute.%arg-1%} is 1:
    34.                 set {mute.%arg-1%} to 0
    35.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    36.         if arg-2 is 30:
    37.             set {mute.%arg-1%} to 1
    38.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &430 minutter &caf &4%player%"
    39.             wait 30 minutes
    40.             if {mute.%arg-1%} is 1:
    41.                 set {mute.%arg-1%} to 0
    42.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    43.         if arg-2 is 1:
    44.             set {mute.%arg-1%} to 1
    45.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &41 Time &caf &4%player%"
    46.             wait 1 hour
    47.             if {mute.%arg-1%} is 1:
    48.                 set {mute.%arg-1%} to 0
    49.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    50.         if arg-2 is 2:
    51.             set {mute.%arg-1%} to 1
    52.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &42 Timer &caf &4%player%"
    53.             wait 2 hours
    54.             if {mute.%arg-1%} is 1:
    55.                 set {mute.%arg-1%} to 0
    56.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    57.         if arg-2 is 4:
    58.             set {mute.%arg-1%} to 1
    59.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &44 Timer &caf &4%player%"
    60.             wait 4 hours
    61.             if {mute.%arg-1%} is 1:
    62.                 set {mute.%arg-1%} to 0
    63.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    64.         if arg-2 is 8:
    65.             set {mute.%arg-1%} to 1
    66.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &48 Timer &caf &4%player%"
    67.             wait 8 hours
    68.             if {mute.%arg-1%} is 1:
    69.                 set {mute.%arg-1%} to 0
    70.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    71.         if arg-2 is 24:
    72.             set {mute.%arg-1%} to 1
    73.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &424 Timer &caf &4%player%"
    74.             wait 24 hours
    75.             if {mute.%arg-1%} is 1:
    76.                 set {mute.%arg-1%} to 0
    77.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    78.         if arg-2 is 48:
    79.             set {mute.%arg-1%} to 1
    80.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &42 Døgn &caf &4%player%"
    81.             wait 48 hours
    82.             if {mute.%arg-1%} is 1:
    83.                 set {mute.%arg-1%} to 0
    84.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    85.         if arg-2 is 168:
    86.             set {mute.%arg-1%} to 1
    87.             broadcast "{@servernavn} &4%arg-1% &cer blevet mutet i &41 Uge &caf &4%player%"
    88.             wait 168 hours
    89.             if {mute.%arg-1%} is 1:
    90.                 set {mute.%arg-1%} to 0
    91.                 message "&2&lUNMUTE: &aDu kan nu skrive igen!" to arg-1
    92.                            
    93.                            
    94.                            
    95.                        
    96.                    
    97. on chat:
    98.     if {mute.%player%} is 1:
    99.         cancel event
    100.         message "&4&lMUTE: &cDu kan ikke skrive når du er mutet!"
     
  2. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    187
    Likes Received:
    9
    Don't use wait 8 hours it will reset when the server stops

    Don't use skript Guis Use TuSKe or SkQuery

    Use booleans (true/false) instead of 0 and 1 [Same work but you'll need booleans sometimes]

    Use "broadcast "<message>" in (player/loop-player/event-player)'s world instead of direct broadcast because that will broadcast this in all worlds and servers if you're using BungeeCord
     
  3. jotoko3

    jotoko3 Member

    Joined:
    Apr 27, 2018
    Messages:
    4
    Likes Received:
    0
    How can I then do it, if I can't use wait 8 hours?
    --- Double Post Merged, Oct 13, 2019, Original Post Date: Oct 13, 2019 ---
    And I really wanna do it with skript guis cuz thats how I learned it, and it works with everything else
     
Loading...