Wins Scoreboard Counter

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

    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!

Kluckings

New Member
May 18, 2024
5
1
3
16
I want to make a scoreboard with SkBee that contains a win counter. To set wins I want to make a command like "/win <number>" then it adds 1 to the wins on the Scoreboard.
is this possible?
 
I mean not really as I am new to this but this is what I have got so far:
on join:
set title of player's scoreboard to "&6TNT Game"
set line 1 of player's scoreboard to " "
set line 2 of player's scoreboard to "&2>>&2 &6Name:&6 %player%"
set line 3 of player's scoreboard to " "
set line 4 of player's scoreboard to "&2>>&2 &6Wins:&6 %{wins::%player's uuid%}%"
set line 5 of player's scoreboard to " "
set line 6 of player's scoreboard to "&7>> Skript by Kluckings&7"
 
I mean not really as I am new to this but this is what I have got so far:
on join:
set title of player's scoreboard to "&6TNT Game"
set line 1 of player's scoreboard to " "
set line 2 of player's scoreboard to "&2>>&2 &6Name:&6 %player%"
set line 3 of player's scoreboard to " "
set line 4 of player's scoreboard to "&2>>&2 &6Wins:&6 %{wins::%player's uuid%}%"
set line 5 of player's scoreboard to " "
set line 6 of player's scoreboard to "&7>> Skript by Kluckings&7"
Using that code, you can add something like:

Code:
command addwin [<player>] [<number>]: # Example /addwin Player 100 (Adds 100 wins to the player)
   trigger:
      add arg-2 to {wins::%arg-1's uuid%}
      # Add code below here to update your scoreboard
By the way: Make sure only devs can run that kind of command.