Jump to content

useful reload skript (under 50 lines) [LAG FREE]


83y

Recommended Posts

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]"

 

Edited by 83y
Fixed bug.

Youtube: https://www.youtube.com/c/83y123

Discord: 83y#2552

IGN: 83y

 

If your seeing this I am currently banned from Posting, the Discord and GitHub

I have helped out countless player's and been re-payed with multiple bans.

staff are attention seeking and biased, i'd just leave for your sake.

your just wasting your time.

like.gif

Link to comment
Share on other sites

  • 83y changed the title to useful reload skript (under 50 lines) [LAG FREE]

why don't we just use the expressions "scripts" and create a gui with all the skripts like that it's simple easy and doesn't require to much work

 

not trying to come off rude or anything it just seems sort of useless

Edited by Mesyl2
explination

I'm a guy yes but I am also human just like any female so why do you believe it's so wrong to cry too?

Link to comment
Share on other sites

This is just terrible...

Founder - Minehut.xyz

The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better.

Support | 28/08/20 -13/09/20

Senior Support | 13/09/20 - 19/10/20

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

Say if you were to edit multiple files in multiple plugins and rather than reloading all of them single handily you can reload all the configs you want with just one command. Its useful because it saves time

Youtube: https://www.youtube.com/c/83y123

Discord: 83y#2552

IGN: 83y

 

If your seeing this I am currently banned from Posting, the Discord and GitHub

I have helped out countless player's and been re-payed with multiple bans.

staff are attention seeking and biased, i'd just leave for your sake.

your just wasting your time.

like.gif

Link to comment
Share on other sites

1 hour ago, Minehut said:

This is just terrible...

how so?

Youtube: https://www.youtube.com/c/83y123

Discord: 83y#2552

IGN: 83y

 

If your seeing this I am currently banned from Posting, the Discord and GitHub

I have helped out countless player's and been re-payed with multiple bans.

staff are attention seeking and biased, i'd just leave for your sake.

your just wasting your time.

like.gif

Link to comment
Share on other sites

On 12/8/2020 at 7:06 PM, hangtight said:

function reload(p: player):
  loop {list::*}:
    make {_p} execute "%{list::*}%"

you don't need to loop for this.. and if you do, "make x execute command "%loop-value%"

Oh, I see, my bad I think I would need to replace "%{list::*}%" with "%{list::%loop-number%}%" ?

Youtube: https://www.youtube.com/c/83y123

Discord: 83y#2552

IGN: 83y

 

If your seeing this I am currently banned from Posting, the Discord and GitHub

I have helped out countless player's and been re-payed with multiple bans.

staff are attention seeking and biased, i'd just leave for your sake.

your just wasting your time.

like.gif

Link to comment
Share on other sites

Ah, yes that's it @hangtightwas kinda in a hurry there and didn't make sure it was correct.

  • Sad 1

Youtube: https://www.youtube.com/c/83y123

Discord: 83y#2552

IGN: 83y

 

If your seeing this I am currently banned from Posting, the Discord and GitHub

I have helped out countless player's and been re-payed with multiple bans.

staff are attention seeking and biased, i'd just leave for your sake.

your just wasting your time.

like.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...