Scoreboard (Sorry to post so soon)

  • 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!

Hi everyone,

Sorry to be posting so soon after a previous post.

Category: Scoreboards (Requests)

Suggested name: Professional Scoreboard

Spigot/Skript Version: Whatever you write it on, it doesn't matter.

What I want:
Okay so, can someone make me this:

https://content.invisioncic.com/h286289/monthly_2019_10/123.png.fbab9cf1e49d565c0d30ce4e28e939da.png

Um, so yeah, I'm not copying another server, I will change it, just wondering if anyone could re-create it for me?

The 'Rank' would be linked with your Pex Group (Whatever rank you are on PermissionsEX).

Money would be linked with vault currency (How much money you have in the plugin Vault)

You would gain bounty from 3 kills upwards (Like a kill streak) $10 every 3 kills IN A ROW.

Ideas for commands: /scoreboard disable and /scoreboard enable

Ideas for permissions: None

When I'd like it by: A reasonable time
 
Hi everyone,

Sorry to be posting so soon after a previous post.

Category: Scoreboards (Requests)

Suggested name: Professional Scoreboard

Spigot/Skript Version: Whatever you write it on, it doesn't matter.

What I want:
Okay so, can someone make me this:

https://content.invisioncic.com/h286289/monthly_2019_10/123.png.fbab9cf1e49d565c0d30ce4e28e939da.png

Um, so yeah, I'm not copying another server, I will change it, just wondering if anyone could re-create it for me?

The 'Rank' would be linked with your Pex Group (Whatever rank you are on PermissionsEX).

Minecraft and Spigot version: ?

Money would be linked with vault currency (How much money you have in the plugin Vault)

You would gain bounty from 3 kills upwards (Like a kill streak) $10 every 3 kills IN A ROW.

Ideas for commands: /scoreboard disable and /scoreboard enable

Ideas for permissions: None

When I'd like it by: A reasonable time
 
1st way using Skellet:
• Hastebin: https://hastebin.com/amalagibin.http (Supports 1.7.10 and 1.8.x and above)
Code:
Addon: Skellet

#
#    This function removes the scoreboard called "YourBoardID" of the player, so as not to store unnecessary data.
#
function removeScoreboard(p: player, id: text):
    loop 10 times:
        delete the id based score "%{_id}%%{_p}%-line-%loop-number%" in stylish scoreboard "%{_id}%-%{_p}%"

    delete stylish scoreboard "%{_id}%-%{_p}%"

#
#    This function updates the player's scoreboard. Don't forget to update it in every event that includes the player.
#    Also, don't use "every X (tick [s] | second [s] | minute [s] | hour [s])" to update scoreboards, because it'll make it flicks.
#
function updateScoreboard(p: player, id: text, title: text):
    set title of stylish scoreboard "%{_id}%-%{_p}%" to "%{_title}%"

    set the text of id "%{_id}%-%{_p}%-line-13" to "&1"
    set the text of id "%{_id}%-%{_p}%-line-12" to "&7Experience Needed &e%{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-11" to "&2"
    set the text of id "%{_id}%-%{_p}%-line-10" to "&7Money &e$%player's balance%"
    set the text of id "%{_id}%-%{_p}%-line-9" to "&7Streak %{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-8" to "&7Kills %{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-7" to "&7Deaths %{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-6" to "&3"
    set the text of id "%{_id}%-%{_p}%-line-5" to "&7Rank &6%{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-4" to "&7Bounty &e$%{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-3" to "&7Squad &e%{your-variable}%"
    set the text of id "%{_id}%-%{_p}%-line-2" to "&4"
    set the text of id "%{_id}%-%{_p}%-line-1" to "&7your-server.com"

#
#        This function add a scoreboard with id "%{_id}%" to player
#
function addScoreboard(p: player, id: text, title: text):
    create new stylish scoreboard named "%{_id}%-%{_p}%"
    set title of stylish scoreboard "%{_id}%-%{_p}%" to "%{_title}%"

    create a new id based score "%{_id}%-%{_p}%-line-13" with text "&1" slot 13 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-12" with text "&7Experience Needed &e%{your-variable}%" slot 12 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-11" with text "&2" slot 11 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-Slot-10" with text "&7Money &e$%player's balance%" slot 10 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-9" with text "&7Streak %{your-variable}%" slot 9 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-8" with text "&7Kills %{your-variable}%" slot 8 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-7" with text "&7Deaths %{your-variable}%" slot 7 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-6" with text "&3" slot 6 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-5" with text "&7Rank &6%{your-variable}%" slot 5 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-4" with text "&7Bounty &e$%{your-variable}%" slot 4 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-3" with text "&7Squad &e%{your-variable}%" slot 3 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-2" with text "&4" slot 2 for stylish scoreboard "%{_id}%-%{_p}%"
    create a new id based score "%{_id}%-%{_p}%-line-1" with text "&7your-server.com" slot 1 for stylish scoreboard "%{_id}%-%{_p}%"

    set stylish scoreboard of {_p} to "%{_id}%-%{_p}%"

#
#    Check if the player has a scoreboard.
#
on join:
    if stylish scoreboard "YourBoardID-%player%" exists:
        removeScoreboard(player, "YourBoardID")

        wait 20 ticks

        addScoreboard(player, "YourBoardID", "&e&lYour&6&lServer")
    else:
        addScoreboard(player, "YourBoardID", "&e&lYour&6&lServer")

on disconnect:
    removeScoreboard(player, "YourBoardID")

#
#    Update the attacker and victim's scoreboard
#
on death of a player:
    if attacker is a player:
        if victim is a player:
            updateScoreboard(attacker, "YourBoardID")
            updateScoreboard(victim, "YourBoardID")


2nd way using SkBee:
• Hastebin: https://hastebin.com/kakojuhona.http (Supports 1.9 and above)
Code:
Addon: SkBee

#
#    Updates the player's scoreboard.
#
function updateScoreboard(p: player):
    set line 13 of {_p}'s scoreboard to "&1"
    set line 12 of {_p}'s scoreboard to "&7Experience Needed &e%{your-variable}%"
    set line 11 of {_p}'s scoreboard to &2"
    set line 10 of {_p}'s scoreboard to "&7Money &e$%player's balance%"
    set line 9 of {_p}'s scoreboard to "&7Streak %{your-variable}%"
    set line 8 of {_p}'s scoreboard to "&7Kills %{your-variable}%"
    set line 7 of {_p}'s scoreboard to "&7Deaths %{your-variable}%"
    set line 6 of {_p}'s scoreboard to "&3"
    set line 5 of {_p}'s scoreboard to "&7Rank &6%{your-variable}%"
    set line 4 of {_p}'s scoreboard to "&7Bounty &e$%{your-variable}%"
    set line 3 of {_p}'s scoreboard to "&7Squad &e%{your-variable}%"
    set line 2 of {_p}'s scoreboard to "&4"
    set line 1 of {_p}'s scoreboard to "&7your-server.com"
 
#
#    Add a scoreboard to a player.
#
on join:
    wait 1 second # I don't know if this is necessary
    set title of player's scoreboard to "&e&lYour&6&lServer"
    updateScoreboard(player)
 
#
#    Update the attacker and victim's scoreboard
#
on death of a player:
    if attacker is a player:
        if victim is a player:
            updateScoreboard(attacker)
            updateScoreboard(victim)

#
#    Removes player's scoreboard.
#
on disconnect:
    clear scoreboard of player

Don't forget to rate me (just kidding) and set the prefix as ''Solved'' if it works.