Jump to content

Skript Lockdown Gui


King_Ferrum

Recommended Posts

# Skript Lockdown Gui

command /lockdown:
  trigger:
    close player's inventory
    wait 1 tick
    open virtual chest inventory with size 3 named "Lockdown GUI" to player
    set {_filler} to 0
    loop 27 times:
      format gui slot {_filler} of player with red stained glass pane named "&3"
      add 1 to {_filler}
    format gui slot 13 off player with red wool named "&4!! &cLOCKDOWN &4!!"
      execute command "/whitelist on"
      execute command "/sudo * hub"

Link to comment
Share on other sites

I don't think Skript on Minehut can execute proxy commands, like /hub. You could just kick all players instead. Also instead of having a loop to format the 27 slots, you can just do format gui slot (integers between 0 and 27) of player to item. And skript also has an effect you can use to enable the whitelist so you dont even need a console command for that too. 

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

7 hours ago, _Tarna_ said:

I don't think Skript on Minehut can execute proxy commands, like /hub. You could just kick all players instead. Also instead of having a loop to format the 27 slots, you can just do format gui slot (integers between 0 and 27) of player to item. And skript also has an effect you can use to enable the whitelist so you dont even need a console command for that too. 

thanks for the advice

 

Link to comment
Share on other sites

On 7/9/2021 at 3:00 PM, King_Ferrum said:

# Skript Lockdown Gui

command /lockdown:
  trigger:
    close player's inventory
    wait 1 tick
    open virtual chest inventory with size 3 named "Lockdown GUI" to player
    set {_filler} to 0
    loop 27 times:
      format gui slot {_filler} of player with red stained glass pane named "&3"
      add 1 to {_filler}
    format gui slot 13 off player with red wool named "&4!! &cLOCKDOWN &4!!"
      execute command "/whitelist on"
      execute command "/sudo * hub"

Worst skript I've ever seen, if ur using TuSKe you would've forgotten to add a ":" on the line 10. Second thing is just make it `kick all players`

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