Jump to content

I was just fooling around with Skript and seeing if it was possible to reload the server without ever doing /reload.


ForestHunters

Recommended Posts

It's been possible with Essentials before they added a confirmation of the decision. So I figured it'll work with Skript.

command /reboot:
	trigger:
		execute console command "/reload"
		wait a tick
		execute console command "/reload confirm"

And yup. It works. I do not recommend doing this, it's merely for experimenting.

I added "wait a tick" just incase "/reload confirm" doesn't interfere with the original reload command.

[June 2016 - May 2021]

 

Thank you Minehut for years of fun.

Link to comment
Share on other sites

oh cool

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

On 3/26/2021 at 1:14 AM, ForestHunters said:

It's been possible with Essentials before they added a confirmation of the decision. So I figured it'll work with Skript.


command /reboot:
	trigger:
		execute console command "/reload"
		wait a tick
		execute console command "/reload confirm"

And yup. It works. I do not recommend doing this, it's merely for experimenting.

I added "wait a tick" just incase "/reload confirm" doesn't interfere with the original reload command.

you can also just 

!command "rl confirm"

if you have effect commands enabled

Discord: MrScopes#5548

Link to comment
Share on other sites

Yea, It looks pretty cool! You could make a gui where players can reload the server by tapping on a block in the gui:

command /admin:

      open chest with 1 row named “admin gui”

      format gui slot 1 of player with commandblock named “&cReload the server” to run:

          make player execute command “reboot”

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...