Jump to content

StarBunnie

Member
  • Posts

    438
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by StarBunnie

  1. 6 minutes ago, SkriptHelpNeeder said:

    is there a way to make it pick the first person or no?

    set {_player} to first element of {queue::*}
    
    set {_player} to {queue::1}

    Not thaaat sure the first one works if it doesn't just take the second

  2. 4 minutes ago, SkriptHelpNeeder said:

    hello! i have a queue system and need to pick a random player from the list. how?

     

    code:

    command /queue:
    	permission: staff.use
    	trigger:
    		if {queue::*} does not contain player:
    			add player to {queue::*}
    			send "&7[&0Queue&7] You have &a&ljoined &7the queue." to player
    		else:
    			remove player from {queue::*}
    			send "&7[&0Queue&7] You have &c&lleft &7the queue." to player

     

    set {_player} to a random element out of {queue::*}

     

  3. 17 minutes ago, Dragon-Master said:

    So I have this:

    on mine of oak leaves:
        if player doesn't have permission "mine.bypass":
            cancel drops
            wait 1 seconds
            set event-block's location to oak leaves

     

    but when you mine the oak leaves, nothing happens?

    Hmm try on break of ... I'm not sure why it should make a difference but give it a shot.

  4. 2 minutes ago, DevLer said:

    Guys, so i want to make a dupe server.

    So ive got all the scripts right (dupe and 10sec random item giver)...

    But only one... and i dont know how to make it.

    it is a toggle command

    if you type /toggle it stops/starts the 10 sec timer!

    here are the other scripts:

    dupe:

    command /dupe:
        trigger:
            set {_item} to player's tool
            give {_item} to player
            stop

    command /dupe2:
        trigger:
            set {_item} to player's tool
            give {_item} to player
            give {_item} to player
            stop

    command /dupe3:
        trigger:
            set {_item} to player's tool
            give {_item} to player
            give {_item} to player
            give {_item} to player
            stop

    command /dupe4:
        trigger:
            set {_item} to player's tool
            give {_item} to player
            give {_item} to player
            give {_item} to player
            give {_item} to player
            stop

     

    heres the 10 sec one:

    every 10 seconds:
        loop all players:
            give loop-player 1 of random items out of all items

     

     

    can somebody help or tell me the script?

    command /toggle:
     trigger:
      player has permission "toggle.use":
       if {rdmtimer} is set:
        delete {rdmtimer}
        send "Turned off"
       else:
        set {rdmtimer} to true
        send "Turned on"
      else:
       send "no perms"
    
    
    
    every 10 seconds:
     if {rdmtimer} is set:
      loop all players:
       give loop-player 1 of random items out of all items

     

  5. 3 minutes ago, MrTibo said:

    Simply give yourself operator permissions by typing op PlayerName in the Console Command section on the dashboard

    Oh that's what they mean by "owning"

  6. 35 minutes ago, DEADBUSHBOSS said:

    I created a server and I need help find out which Minecraft account owns it

    What do you exactly mean? In the Dashboard you can see on the top left the skin and email with which a server has been created. Additionally you can go into the Hubserver (Type /hub on your server or just join Minehuts server via the list) and in the scoreboard on the right you can see "Your servers:" and there you can see yours.

  7. 3 hours ago, Windyshop said:

    so I made a gen script and it works perfectly fine, but when my server restarts it removes my ownership of the gens i put down. here's the script: https://pastebin.com/3rHjycaW

    Judging by how it's a gen server you probably have PlotSquared keep in mind that if a world gets unloaded all location variables that are based in this world get deleted. To change that you have to load the world on startup which is easily done by using the plugin Multiverse.

  8. 6 hours ago, pizzaschut said:

    1.17 aint gonna last long huh

    Yeah idk why they bothered splitting it 1.17 has not a lot of features and in like 30 minutes you can see almost everything it has to offer and the split is just a huge hassle for all plugin/server developers out there..

  9. 15 minutes ago, BlahBlahh said:

    also here is the code

     

    command /tokens [<string>] [<player>] [<number>]:
      aliases: "/token"
      permission: "tokens.sk"
      trigger:
        if arg-1 is "give":
          give arg-3 to {tokens::%player%}
          send "&6Added %arg-3% to %arg-2%" to player

    If you want to add a number to a variable use add

    add arg 3 to {tokens::%player%}

    As you see you also wrote player in your variable which is always the player that executes the command to change that use arg 2 here instead

    add arg 3 to {tokens::%arg 2%}

    Another thing is you're only using player or now arg 2 this means it will use their name. The issue is if they change their name all their progress is gone : (

    add arg 3 to {tokens::%arg 2's uuid%}

    That's why you should use uuid instead this stays forever

    Here is a quick overview of how it looks for skript:

    {tokens::%player%} -> {tokens::starbunnie}
    
    {tokens::%player's uuid%} -> {tokens::aaaaaaaaaa-bbbbbb-cccc-dddd-eeeeee}

     

    • Like 2
  10. 6 hours ago, jgfdjgj said:

    what are alts?

    "alts" is usually said when talking about the second account of someone

    So basically they "bought" multiple instances of minecraft 

  11. 1 hour ago, RagedStream said:

    Thanks for the link.

    I still have queries.

    Would I get banned if some cracked clients join my server, with or without my permission?

    They can't join the server in any way because they can't get authenticated with the minecraft servers so they will get kicked immediately so don't worry about that.

  12. 6 hours ago, d1zzle said:

    When you are on 1.17 on minehut like a brand new server made on 1.17 why doesn't the new caves generate only thing that generates is amethyst any fixes would be appreciated!

    Well the reason is that the new caves are not in 1.17 but in 1.18

  13. 5 hours ago, zuyn said:
    on join:
    	erase player's sidebar
    	set name of sidebar of player to "&3&lVligh"
    	set id based score "x: %player's x-location%" in sidebar of player to 3 with id "x.%player%"
    	set id based score "y: %player's y-location%" in sidebar of player to 2 with id "y.%player%"
    	set id based score "z: %player's z-location%" in sidebar of player to 1 with id "z.%player%"
    	set score " " in sidebar of player to 4
    	set id based score "&cTime: &f0" in sidebar of player to 5 with id "time.%player%"
    	while player is online:
    		if {timer::%player's uuid%} is set:
    			set {_time} to difference between {timer::%player's uuid%} and now
    			edit score with id "time.%player%" to "&cTime: &f%{_time}%" and 5
    		else:
    			edit score with id "time.%player%" to "&cTime: &f0.00 seconds" and 5
    		edit score with id "x.%player%" to "&cx: &f%player's x-location%" and 3
    		edit score with id "y.%player%" to "&cy: &f%player's y-location%" and 2
    		edit score with id "z.%player%" to "&cz: &f%player's z-location%" and 1
    		wait 2 ticks
    
    on quit:
    	erase player's sidebar

    Attached is video of the issue Im having.

    Does anyone know what I did wrong?? I have no clue

    ~Psst~ SkBees scoreboard is better.

    on join:
     while player is online:
      set title of player's scoreboard to "&3&lVligh"
      if {timer::%player's uuid%} is set:
       set {_time} to difference between {timer::%player's uuid%} and now
      else:
       set {_time} to "&f0.00 seconds"
      set line 5 of player's scoreboard to "&cTime: &f%{_time}%"
      set line 4 of player's scoreboard to ""
      set line 3 of player's scoreboard to "&cx: &f%player's x-location%"
      set line 2 of player's scoreboard to "&cy: &f%player's y-location%"
      set line 1 of player's scoreboard to "&cz: &f%player's z-location%"
      toggle scoreboard of player on
      wait 2 ticks
    
    on quit:
     clear scoreboard of player

     

    • Like 1
×
×
  • Create New...