Jump to content

I need Help with a lockdown skript


Ramina__

Recommended Posts

I've looked over the code and fixed a few errors in it, try using this:

 

Spoiler

command /lockdown:
  trigger:
    close player's inventory
    wait 1 tick
    open virtual chest inventory with size 3 named "&4&lLOCKDOWN" 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 of player with red wool named "&4!! &cLOCKDOWN &4!!"
    execute command "/whitelist on"
    wait 50 tick
    execute command "/minecraft:kick @a Server has been whitelisted by an Admin!"

 

Edited by wxterfall

If you like what I post or I've helped you please leave a like or upvote my posts! Thanks!

Link to comment
Share on other sites

8 minutes ago, wxterfall said:

I've looked over the code and fixed a few errors in it, try using this:

 

  Reveal hidden contents

command /lockdown:
  trigger:
    close player's inventory
    wait 1 tick
    open virtual chest inventory with size 3 named "&4&lLOCKDOWN" 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 of player with red wool named "&4!! &cLOCKDOWN &4!!"
    execute command "/whitelist on"
    wait 50 tick
    execute command "/minecraft:kick @a Server has been whitelisted by an Admin!"

 

works thanks

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