Jump to content

83y

Member
  • Posts

    109
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by 83y

  1. I spent quite a bit of time on this 🙂 if you can't understand skript all you need to know is the commands /reload and /restart

    options:
      prefix: &a&l------------&r &a&lCOMMANDS &a&l------------
      listcolour: &a
    
    function reload(p: player):
      loop {list::*}:
        make {_p} execute "%{list::%loop-value%}%"
    
    command /restart:
      trigger:
        make console execute command "save-all"
        wait 1 second
        make console execute command "stop"
    
    command /reload [<string>] [<string>]:
      trigger:
        if arg-1 is not set:
          if {list::*} is not set:
            send "&cThere is are no commands! add commands with /reload [add/remove] [command (without the /)]"
            stop
          else:
            reload(player)
        else:
          if arg-1 is not "add" or "remove" or "list":
            send "&c/reload [add/remove/list] [command]"
          else:
            if arg-1 is "list":
              if {list::*} is not set:
                send "&cThere are no commands! add commands with /reload [add/remove] [command (without the /)]"
                stop
              else:
                send "{@prefix}"
                loop {list::*}:
                  send "{@listcolour}%{list::*}%"
                send "{@prefix}"
                stop
            if arg-2 is set:
              if arg-1 is "add":
                add arg-2 to {list::*}
                send "&aYou successfully added &a%arg-2% &ato the reload"
              if arg-1 is "remove":
                set {_arg2} to arg-2
                if {list::*} contains "%{_arg2}%":
                  remove arg-2 from {list::*}
                  send "&aYou successfully removed &a%arg-2% &afrom the reload"
                else:
                  send "&cThis command is not in the list. use /reload list to see the list of commands"
            else:
              send "&c/reload [add/remove] [command]"

     

  2. Ok @DasonPlayzyou cannot restart your server on minehut.

    However, I will try my best to make you a skript that reloads all the configs you want and another one that saves the server and then stops it.

    options:
      prefix: &a&l------------&r &a&lCOMMANDS &a&l------------
      listcolour: &a
    
    function reload(p: player):
      loop {list::*}:
        make {_p} execute "%{list::*}%"
    
    command /restart:
      trigger:
        make console execute command "save-all"
        wait 1 second
        make console execute command "stop"
    
    command /reload [<string>] [<string>]:
      trigger:
        if arg-1 is not set:
          if {list::*} is not set:
            send "&cThere is are no commands! add commands with /reload [add/remove] [command (without the /)]"
            stop
          else:
            reload(player)
        else:
          if arg-1 is not "add" or "remove" or "list":
            send "&c/reload [add/remove/list] [command]"
          else:
            if arg-1 is "list":
              if {list::*} is not set:
                send "&cThere are no commands! add commands with /reload [add/remove] [command (without the /)]"
                stop
              else:
                send "{@prefix}"
                loop {list::*}:
                  send "{@listcolour}%{list::*}%"
                send "{@prefix}"
                stop
            if arg-2 is set:
              if arg-1 is "add":
                add arg-2 to {list::*}
                send "&aYou successfully added &a%arg-2% &ato the reload"
              if arg-1 is "remove":
                set {_arg2} to arg-2
                if {list::*} contains "%{_arg2}%":
                  remove arg-2 from {list::*}
                  send "&aYou successfully removed &a%arg-2% &afrom the reload"
                else:
                  send "&cThis command is not in the list. use /reload list to see the list of commands"
            else:
              send "&c/reload [add/remove] [command]"

    There finished 🙂 ,I spent a bit of time on this. This can also make shortcuts to commands.

  3. Here spent a bit of time on this so if you could +1 on my rep that would be great!

    I made two methods on how to fix your problem.

    I fixed your skript code which you could use:

    on join:
        if player has played before:
            set join message to "welcome &a%player% &rback to the hut!"
        else:
            give shulker box to the player
            give 64 oak logs to the player
            give 64 torches to the player
            give enchanted book of mending to the player
            set join message to "&e%player% &ris now a hobo!"
    
    # to reset joins just go to your world folder then delete playerdata
    
    on quit:
        set leave message to "&a %player% &r left the hut"

    Or you could use essentials to give a player a kit editing kits.yml inside Plugins > EssentialsX > kits.yml and then changing tools to the name of the kit you want to give the player when they first join.

    tools.PNG

    • Like 1
  4. I voted multiple times, did promo's etc. but because I didn't link my account these credits went disappeared, kinda annoying since I have voted 10 times+ and received no credits only because I just noticed I wasn't getting them because I hadn't linked my account.

     

    I feel as if I have been scammed.

  5. Here is my code:

    create a gui slot 10 of executor with skull of %executor% named "&c&lADMIN PANEL"

    I can't get the executors head to appear as a skull, I have searched forums, used google, I can't find the right syntax for it, would anyone know?

     

    Fixed: with another 10 mins of searching and trial and error I finally found the correct syntax. https://skripthub.net/docs/?id=981

  6. On 10/25/2020 at 4:56 PM, Minehut said:

    There's no official way to do this, and CubedSK isn't really official either... just the developer that made it was smart. This could be a cool suggestion though. Suggest it here.

    Thanks for replying. All I wanted to know if it was possible or not.

  7. I don't think this will work but give it a try, its super simple, I think I messed up on the syntax's, but hopefully you get the gist. Someone please correct me if I am wrong lol.

    command /toggle
      trigger:
      if {toggleoff::%player%} exists:
         delete {toggleoff::%player%}
        else:
         set {toggleoff::%player%} to true
    
    every 15 seconds:
      loop all players
        if {toggleoff::%loop-player%} does not exist:
          loop until {item::%loop-player%} is true:
            chance of 90%:
              give loop-player 1 of dirt
              set {item::%loop-player%} to true
              stop
            chance of 80%:
              give loop-player 1 of oak_wood
              set {item::%loop-player%} to true
              stop
            delete {item::%loop-player%}

     

×
×
  • Create New...