Jump to content

Madlirex

Recommended Posts

Hi!

I need skript, when you will do command /playergroups admins add <player> it will add player’s uuid to one variable named “Adminsuuid” and his nick to other one named “Admins” and it will send you “Added (player) to admins”, when you will do command /playergroups admins list it will send to chat you list of the players what are in variable “Admins” and when you will do command /playergroups admins remove <player> it will remove player’s uuid from “Adminsuuid” and his nick from “Admins” and it will send you “Removed “player” from admins”. (I am making skripts for my server with plugin Skript)

Link to comment
Share on other sites

I have a possible way for you. I don't know if it is how you wanted it but if not just write what's wrong and i can fix it for you. If you have any questions write them to me and not in this conversation.


command /playergroups <player>:
    trigger:
        set {Adminsuuid} to "%uuid of arg-1%"
        set {playername} to "%arg-1%"
        add "%arg-1%" to {alladmins}
        send "Added %{playername}% to adminlist" to player
        send "UUID ofplayer: %{Adminsuuid}%" to player
        add arg 1 to {Admins::*}


command /adminlist:
    trigger:
        send "Admins: %{Admins::*}%" to player

command /remove <player>:
    trigger:
        set {Adminsuuid} to ""
        remove arg 1 from {Admins::*}
        send "Removed %arg-1% from adminlist" to player

Edited by huhu75466545325256
Link to comment
Share on other sites

23 hours ago, huhu75466545325256 said:

I have a possible way for you. I don't know if it is how you wanted it but if not just write what's wrong and i can fix it for you. If you have any questions write them to me and not in this conversation.


command /playergroups <player>:
    trigger:
        set {Adminsuuid} to "%uuid of arg-1%"
        set {playername} to "%arg-1%"
        add "%arg-1%" to {alladmins}
        send "Added %{playername}% to adminlist" to player
        send "UUID ofplayer: %{Adminsuuid}%" to player
        add arg 1 to {Admins::*}


command /adminlist:
    trigger:
        send "Admins: %{Admins::*}%" to player

command /remove <player>:
    trigger:
        set {Adminsuuid} to ""
        remove arg 1 from {Admins::*}
        send "Removed %arg-1% from adminlist" to player

i suggest a couple things

1. Use temp variables ({_Adminsuuid} instead of {Adminsuuid}) for things like this.

2. Make it a whole command, instead of 3 seperate ones (Maybe /AdminList <Add/Remove/List>)

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

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