Boss 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.
May 6, 2020
44
0
6
Can someone help me! PLSSSSSSSSSSSSSSSSSSSSSSS

Here is my code:
Code:
command /nick:
        make player execute command "/nick"
        create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white

command /unnick:
        make player execute command "/unnick"
        remove bossbar "Nick Bossbar"

Here is my errors:
Code:
[16:56:06 ERROR]: 'make player execute command "/nick"' is not an entry (like 'name : value') (Action bar.sk, line 2: make player execute command "/nick"')
[16:56:06 ERROR]: 'create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white' is not an entry (like 'name : value') (Action bar.sk, line 3: create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white')
[16:56:06 ERROR]: Required entry 'trigger' is missing in 'command /nick' (Action bar.sk, starting at line 1) (Action bar.sk, line 1: command /nick:')
[16:56:06 ERROR]: 'make player execute command "/unnick"' is not an entry (like 'name : value') (Action bar.sk, line 6: make player execute command "/unnick"')
[16:56:06 ERROR]: 'remove bossbar "Nick Bossbar"' is not an entry (like 'name : value') (Action bar.sk, line 7: remove bossbar "Nick Bossbar"')
[16:56:06 ERROR]: Required entry 'trigger' is missing in 'command /unnick' (Action bar.sk, starting at line 5) (Action bar.sk, line 5: command /unnick:')
 
Can someone help me! PLSSSSSSSSSSSSSSSSSSSSSSS

Here is my code:
Code:
command /nick:
        make player execute command "/nick"
        create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white

command /unnick:
        make player execute command "/unnick"
        remove bossbar "Nick Bossbar"

Here is my errors:
Code:
[16:56:06 ERROR]: 'make player execute command "/nick"' is not an entry (like 'name : value') (Action bar.sk, line 2: make player execute command "/nick"')
[16:56:06 ERROR]: 'create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white' is not an entry (like 'name : value') (Action bar.sk, line 3: create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white')
[16:56:06 ERROR]: Required entry 'trigger' is missing in 'command /nick' (Action bar.sk, starting at line 1) (Action bar.sk, line 1: command /nick:')
[16:56:06 ERROR]: 'make player execute command "/unnick"' is not an entry (like 'name : value') (Action bar.sk, line 6: make player execute command "/unnick"')
[16:56:06 ERROR]: 'remove bossbar "Nick Bossbar"' is not an entry (like 'name : value') (Action bar.sk, line 7: remove bossbar "Nick Bossbar"')
[16:56:06 ERROR]: Required entry 'trigger' is missing in 'command /unnick' (Action bar.sk, starting at line 5) (Action bar.sk, line 5: command /unnick:')
You need put 'trigger' into your skript. Like this:
code_language.skript:
command /nick:
    trigger:
        #your code...
 
I will try that again but last time I don’t think it worked. I’ll give the errors here after I test.
[doublepost=1591149810,1591142907][/doublepost]
Code:
Can't understand this condition/effect: create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white (Bossbar.sk, line 4: create bossbar titled "You are currently &cNICKED" and id "Nick Bossbar" for player with progress 100 with colors white')
[21:03:06 ERROR]: Can't understand this condition/effect: remove bossbar "Nick Bossbar" (Bossbar.sk, line 9: remove bossbar "Nick Bossbar"')
:emoji_frowning:
 
For bossbars, you have to install addon called SkRayFall (can be found in the docs! https://docs.skunity.com/syntax/search/bossbar)
Also, you are creating a new command! /nick will probably not work now, because you overwrote it.
To make it work, you should use "on command" event.
Then, why are you making player execute the command again and again? it will probably crash the server at some point (or just spam the console).
 
I have skrayfall I am not good at anything :emoji_frowning:
[doublepost=1591195015,1591188772][/doublepost]Here is my new code:
Code:
on command "/nick":
        set {bar} to new bossbar
        add player to bossbar {bar}
        set text of {bar} to "You are currently &cNICKED"
        


on command "/unnick":
        hide bossbar {bar} from player
 
Status
Not open for further replies.