Jump to content

Staff Skript


Sethie

Recommended Posts

Not tested so not sure if it will work. Do /addstaff <player> to add someone to the list and /remove <player> to remove someone from the list. You can just change the colors to what you want and the lores in the gui to what you want. Also next time if you want someone to make a skript for you, ask in the Marketplace Category

 

command /addstaff <offline player>:
  	permission: staff.add
  	trigger:
  		if {stafflist::*} contains arg-1:
  			send "That player is already added to the staff list"
  		else:
  			add arg-1 to {stafflist::*}
  			send "%arg-1% added to the staff list"

command /removestaff <offline player>:
  	permission: staff.remove
  	triger:
  		if {stafflist::*} contains arg-1:
  			remove arg-1 from {stafflist::*}
  			send "Removed %arg-1% from the staff list"
  		else:
  			send "%arg-1% is not in the staff list"
  
command /staff:
  	trigger:
  		set {_s} to 0
  		set metadata tag "staffGUI" of player to chest inventory with 3 rows named "Staff"
  		loop {stafflist::*}:
  			set slot {_s} of metadata tag "staffGUI" of player to loop-value's skull with lore "Name: %loop-value%" and "Rank: %loop-value's group%"
  			add 1 to {_s}
  		open (metadata tag "staffGUI" of player) to player

 

 

Edited by _Tarna_

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

2 minutes ago, _Tarna_ said:

Not tested so not sure if it will work. Do /addstaff <player> to add someone to the list and /remove <player> to remove someone from the list. You can just change the colors to what you want and the lores in the gui to what you want. Also next time if you want someone to make a skript for you, ask in the Marketplace Category

 


command /addstaff <offline player>:
  	permission: staff.add
  	trigger:
  		if {stafflist::*} contains arg-1:
  			send "That player is already added to the staff list"
  		else:
  			add arg-1 to {stafflist::*}
  			send "%arg-1% added to the staff list"

command /removestaff <offline player>:
  	permission: staff.remove
  	triger:
  		if {stafflist::*} contains arg-1:
  			remove arg-1 from {stafflist::*}
  			send "Removed %arg-1% from the staff list"
  		else:
  			send "%arg-1% is not in the staff list"
  
command /staff:
  	trigger:
  		set {_s} to 0
  		set metadata tag "staffGUI" of player to chest inventory with 3 rows named "Staff"
  		loop {stafflist::*}:
  			set slot {_s} of metadata tag "staffGUI" of player to loop-value's skull with lore "Name: %loop-value%" and "Rank: %loop-value's group%"
  			add 1 to {_s}
  		open (metadata tag "staffGUI" of player) to player

 

 

Thanks, I'll try that!

 

Link to comment
Share on other sites

5 minutes ago, _Tarna_ said:

Not tested so not sure if it will work. Do /addstaff <player> to add someone to the list and /remove <player> to remove someone from the list. You can just change the colors to what you want and the lores in the gui to what you want. Also next time if you want someone to make a skript for you, ask in the Marketplace Category

 


command /addstaff <offline player>:
  	permission: staff.add
  	trigger:
  		if {stafflist::*} contains arg-1:
  			send "That player is already added to the staff list"
  		else:
  			add arg-1 to {stafflist::*}
  			send "%arg-1% added to the staff list"

command /removestaff <offline player>:
  	permission: staff.remove
  	triger:
  		if {stafflist::*} contains arg-1:
  			remove arg-1 from {stafflist::*}
  			send "Removed %arg-1% from the staff list"
  		else:
  			send "%arg-1% is not in the staff list"
  
command /staff:
  	trigger:
  		set {_s} to 0
  		set metadata tag "staffGUI" of player to chest inventory with 3 rows named "Staff"
  		loop {stafflist::*}:
  			set slot {_s} of metadata tag "staffGUI" of player to loop-value's skull with lore "Name: %loop-value%" and "Rank: %loop-value's group%"
  			add 1 to {_s}
  		open (metadata tag "staffGUI" of player) to player

 

 

Well, there 24 errors

Link to comment
Share on other sites

Just now, Sethie said:

Well, there 24 errors

What are the errors? I made it in like 5 minutes and its 1am for me so just send a screenshot of them.

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

56 minutes ago, Sethie said:

 

2020-09-19_15.15.54.png

2020-09-19_15.16.07.png

2020-09-19_15.16.10.png

2020-09-19_15.16.12.png

2020-09-19_15.16.15.png

Those are just indent errors from copying and pasting. If you know some skript, you should be able to fix it yourelf. Just reindent every line. 

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

44 minutes ago, Sethie said:

wdym reindent every line?

 

The issue isn't with the script, it's with the way you've pasted it in to the Minehut editor. Make sure it follows the correct indentation. View examples here.

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

43 minutes ago, Sethie said:

why?

imma take a guess that it was in the wrong place

Twitch Affiliate, YouTuber and Minehut Content Creator

(100,000+ Combined Views, 1,100+ Combined Followers & Subs, 20,000+ Combined Unique Players)

IGN:
[YOUTUBE] Centrect

 Please don't DM me for support, go here or join Minehut's Discord if you need assistance.

 

Link to comment
Share on other sites

Slightly modified version of Tarna's script, in the Skunity Parser instead of code blocks because indents are a bit odd here

https://parser.skunity.com/5445794b

Edited by TheGoose
typo

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

53 minutes ago, TheGoose said:

Slightly modified version of Tarna's script, in the Skunity Parser instead of code blocks because indents are a bit odd here

https://parser.skunity.com/5445794b

oops forgot about the inventory click thing.

  • Haha 1

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

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