Sethie Posted September 19, 2020 Share Posted September 19, 2020 So, I need a skript. What the skript would do is, if you run /staff a gui would pop up with all the staff members heads, with their ranks and names. Is there any skript for this? Link to comment Share on other sites More sharing options...
_Tarna_ Posted September 19, 2020 Share Posted September 19, 2020 (edited) 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 September 19, 2020 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 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 More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 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 More sharing options...
_Tarna_ Posted September 19, 2020 Share Posted September 19, 2020 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 4 minutes ago, _Tarna_ said: What are the errors? I made it in like 5 minutes and its 1am for me so just send a screenshot of them. Link to comment Share on other sites More sharing options...
_Tarna_ Posted September 19, 2020 Share Posted September 19, 2020 56 minutes ago, Sethie said: 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 40 minutes ago, _Tarna_ said: 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. wdym reindent every line? Link to comment Share on other sites More sharing options...
notminehut Posted September 19, 2020 Share Posted September 19, 2020 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 Link to comment Share on other sites More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 8 minutes ago, Minehut said: 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. Im confused Link to comment Share on other sites More sharing options...
Reassembly Posted September 19, 2020 Share Posted September 19, 2020 Moved to Marketplace Default: Feb 6 2018 VIP: April 14 2019 Jr. Mod: September 12 2020 Mod: Jan 11 2021 Am a person Hello Link to comment Share on other sites More sharing options...
Sethie Posted September 19, 2020 Author Share Posted September 19, 2020 23 minutes ago, Reassembly said: Moved to Marketplace why? Link to comment Share on other sites More sharing options...
Centrect Posted September 19, 2020 Share Posted September 19, 2020 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 More sharing options...
UntitledGoose Posted September 19, 2020 Share Posted September 19, 2020 (edited) 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 September 19, 2020 by TheGoose typo VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
_Tarna_ Posted September 19, 2020 Share Posted September 19, 2020 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. 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 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Sethie Posted September 20, 2020 Author Share Posted September 20, 2020 8 hours 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 This worked however there is 1 error Link to comment Share on other sites More sharing options...
UntitledGoose Posted September 20, 2020 Share Posted September 20, 2020 31 minutes ago, Sethie said: This worked however there is 1 error this revision should work: https://parser.skunity.com/5445794b VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
Sethie Posted September 20, 2020 Author Share Posted September 20, 2020 9 minutes ago, TheGoose said: this revision should work: https://parser.skunity.com/5445794b It has that error Link to comment Share on other sites More sharing options...
UntitledGoose Posted September 20, 2020 Share Posted September 20, 2020 2 minutes ago, Sethie said: It has that error ill look into it tomorrow VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now