Search results

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

  1. Mich

    How to i add a cooldown to this command?

    no it was my mistake try this set {_y} to now set {_x} to {_y} - {clickbeehive::%player%::lastuse}
  2. Mich

    Execute skript the entire time that more than 15 players are online.

    try this while amount of all players is more than 14: execute console command "" wait (cooldown) (seconds, minutes, hours) #example wait 40 seconds
  3. Mich

    How to i add a cooldown to this command?

    if difference between {clickbeehive::%player%::lastuse} and now is smaller than a minute: set {_x} to now - {clickbeehive::%player%::lastuse} message "You have to wait %{_x}% seconds to do this again" to player if you dont want your players to get more than 1 reward add a stop like...
  4. Mich

    please tell me about on command

    Yes you can On command "/deop": If {nodop.%player%} is true: Cancel event Message "you can't deop other admins"
  5. Mich

    Skript not parsing and crashing server

    the problem may be the loop you should try to add a delay like wait a tick
  6. Mich

    Chat issue

    If you use send is just going to send the message to the player, you have to use broadcast
  7. Mich

    Solved Need help to an bee that i'm riding attacks player

    #try this on damage: if victim is riding a bee: while attacker is alive: make victim's vehicle target attacker if distance between victim's vehicle and attacker is less than 10: wait a tick if distance between victim's vehicle and attacker is less...
  8. Mich

    How can i repeat a loop after if?

    You don't need addons and is not necessary to have values inside () but there is a tutorial about function in this page. But you can try adding this (s: string) Then when you call the function FindPlayer("ASDS")
  9. Mich

    How can i repeat a loop after if?

    What are you trying to do because it doesn't make any sense. If you tell us we can tell you a way to accomplish what you're trying to do. Because it doesn't make any sense to loop all players and then set {_player} to a random element out of players. Because if you are using a command to find a...
  10. Mich

    if arg<1: not working

    The med the message correct usage pops up because the command you made only have 1 argument if you want to do a custom message do this instead Command /money [<integer>]: Trigger: If arg 1 is set: #code Else: Message "custom message"
  11. Mich

    See who did the most damage?

    If loop-player is not "examplePlayer" or "example Player2"
  12. Mich

    See who did the most damage?

    Try using The latest version of skript and random sk and paper 1.18.2 We're I got the example Shane said it worked using this versions and the other guy was using paper 1.8 and don't work Works fine using: - RandomSK 2.7.1 - Bensku's Skript fork: dev-25 - PaperSpigot for 1.11.2 (Paper-1079)
  13. Mich

    See who did the most damage?

    RandomSK
  14. Mich

    Message most damage player

    command /test: trigger: loop {enderdamage::*}: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size}...
  15. Mich

    Pass player entity via function and open chest

    Use vanilla GUI (just skript GUI) with metadata tags there is a tutorial. Just go to tutorials
  16. Mich

    Pass player entity via function and open chest

    command /testButton: trigger: foo(player) function foo(player: player): send "FOO" to {_player} set metadata tag "Tester" of {_player} to chest inventory with 3 rows named "&cTESTER" set slot 5 of metadata tag "Tester" of {_{_player}} to blaze powder of umbreaking 10 named...
  17. Mich

    Solved Staff Menu

    command /kontrol [<offline player>]: aliases: k, kon, styr, staff permission: staff permission message: &8&l[ &c&lSTAFF &8&l] &cDette kan du ikke!" trigger: if arg-1 is set: set {target_player.%player%} to arg 1 set metadata tag "StaffGUI" of...
  18. Mich

    Need helping fixing my quest skript

    It have to do with the questcomp variable may be is true or just not set. Try defining to false the variable or do a else if instead of if
  19. Mich

    Need helping fixing my quest skript

    You don't have to do a if for every amount of coal you can just reduce all that to this If {coal variable} is not set: No coal message Else if {coal variable} Is less than 5 Message "You have %{coal variable}% coal." Else: #when coal variable is more or equal to 5 Code
  20. Mich

    Take an element from a variable and compare it to an argument

    If arg 2 is "text" And you can just do Broadcast"debug 1"