Nick And Vanish Action Bar

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Create a skript file:
Code:
on command "/vanish" or "/v":
    loop all players:
        if loop-player has permission "vanish.msgsee":
            if {vanish::%player%} is not set:
                set {vanish::%player%} to true
                set action bar of loop-player to "%player% has vanished!"
            else:
                clear {vanish::%player%}
                set action bar of loop-player to "%player% is no longer vanished!"
for /nick it's similar:
Code:
on command "/nick":
    set {_nick} to arguments
    loop all players:
        if loop-player has permission "nick.msgsee":
            if {nick::%player%} is not set:
                set {nick::%player%} to true
                set action bar of loop-player to "%player% is now nicked - %{_nick}%!"
            else:
                clear {nick::%player%}
                set action bar of loop-player to "%player% is no longer nicked!"
I did not test it but it should work :emoji_slight_smile:
[doublepost=1591122237,1591122198][/doublepost]Also, please do not spam the forum, if you need help quickly, use discord.
 
ok, so how do we put them together, and I want don't want it to say anything after unvanished or unnicked
[doublepost=1591122346,1591122300][/doublepost]and srry i cant use discord plus I am sorry for spamming, I am impatient
[doublepost=1591122512][/doublepost]i found error, i use a nick GUI basically like hypixels, and I need it to say You are currently NICKED,VANISHED or one or the other
 
Put this skript into your plugins/skript/scripts folder.
To make it work, you also need a SkRayFall addon, you can download it here: https://docs.skunity.com/addon/skRayFall
[doublepost=1591122644,1591122528][/doublepost]
i found error, i use a nick GUI basically like hypixels, and I need it to say You are currently NICKED,VANISHED or one or the other
you mean something like this?
Code:
set action bar of player to "You are now %{_nick}%!"
 

Attachments

  • yourskript.sk
    873 bytes · Views: 340
You are now NICKED
You are now VANISHED
You are now VANISHED,NICKED

Like this
[doublepost=1591122803,1591122721][/doublepost]can u make a new skript and send it cause idk where to even edit and ill probably screw it up if I did
 
okay... you can use placeholders to check if player is nicked or not:
Code:
on command "/nick":
    set {_nicked} to value of placeholder "eazynick_is_nicked" from player
    set {_nick} to value of placeholder "eazynick_display_name" from player
    if {_nicked} is true:
        send "&7You are now %{_nick}%"
Do you want something like this or no?
Btw... Skellett is needed for placeholders.
 
i have all plugins but i dont need it to display the nick, I want it like hypixel.

You are now NICKED
You are now VANISHED
You are now VANISHED,NICKED
 
My god... if you want to have a server like hypixel, ask them to send you their plugins :emoji_angry:
I do not play on hypixel, I'm not planning on doing it and I'm trying to help you and you are the one who wants my help.
 
:emoji_frowning:

You are now NICKED
You are now VANISHED
You are now VANISHED,NICKED

this is all I want it to say, u are trying to give so much extra like the nickname u have and everything... :emoji_frowning:
 
Code:
on command "/nick", "/vanish" or "/v":
    set {_nicked} to value of placeholder "eazynick_is_nicked" from player
    set {_vanished} to value of placeholder "supervanish_isvanished" from player
    if {_nicked} is true:
        if {_vanished} is true:
            send "You are nicked and vanished"
        else:
            send "You are nicked"
    else if {_vanished} is true:
        send "You are vanished"
 
thx but can i set the send, to set actionbar or however that works and remove the action bar when nothing is currently set to true
 
thx but can i set the send, to set actionbar or however that works and remove the action bar when nothing is currently set to true
Code:
#Replace all
send %your message%
#to
set action bar of player to %your message%
I think setting the action bar will set it for just a couple of seconds but I'm not sure. I'm sure you can try it :emoji_wink:
 
testing it
[doublepost=1591124662,1591124622][/doublepost]and yes u did help :emoji_slight_smile:
[doublepost=1591124727][/doublepost]big oof:
Code:
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "eazynick_is_nicked" from player' (Action bar.sk, line 2: set {_nicked} to value of placeholder "eazynick_is_nicked" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "supervanish_isvanished" from player' (Action bar.sk, line 3: set {_vanished} to value of placeholder "supervanish_isvanished" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "eazynick_is_nicked" from player' (Action bar.sk, line 13: set {_nicked} to value of placeholder "eazynick_is_nicked" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "supervanish_isvanished" from player' (Action bar.sk, line 14: set {_vanished} to value of placeholder "supervanish_isvanished" from player')
[14:04:59 INFO]: Loaded 3 scripts with a total of 20 triggers and 6 commands in 1.53 seconds
[14:04:59 INFO]: [Skript] Encountered 4 errors while reloading all scripts!
 
big oof:
Code:
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "eazynick_is_nicked" from player' (Action bar.sk, line 2: set {_nicked} to value of placeholder "eazynick_is_nicked" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "supervanish_isvanished" from player' (Action bar.sk, line 3: set {_vanished} to value of placeholder "supervanish_isvanished" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "eazynick_is_nicked" from player' (Action bar.sk, line 13: set {_nicked} to value of placeholder "eazynick_is_nicked" from player')
[14:04:57 ERROR]: Can't understand this expression: 'value of placeholder "supervanish_isvanished" from player' (Action bar.sk, line 14: set {_vanished} to value of placeholder "supervanish_isvanished" from player')
[14:04:59 INFO]: Loaded 3 scripts with a total of 20 triggers and 6 commands in 1.53 seconds
[14:04:59 INFO]: [Skript] Encountered 4 errors while reloading all scripts!
Do you have all required addons?
I think Skellett is needed, maybe Ersatz
 
Status
Not open for further replies.