Scoreboard-team kills

Discussion in 'Server & Community Management' started by User1882, May 1, 2017.

  1. Hi,
    I have searched everywhere on the internet and I cannot find anyway to record team kills on a scoreboard. What I would like is a team kills section above kills on the teams scoreboard in this code: (I highlighted the text red)


    options:
    Tittle: &b&lPotentialUHC
    Server: &b&[email protected]
    Game: &a&lGame
    Kills: &a&lKills
    Players Alive: &a&lPlayers Left

    command /UHCScoreFFA:
    permission: uhc.host
    permission message: &cNo Tienes los permisos para usar este comando.
    trigger:
    set {Score.FFA} to true
    set {Score.true} to false
    loop all players:
    wipe loop-player sidebar
    wait 1 ticks
    set name of sidebar of loop-player to " {@Tittle} "
    set score "&b" in sidebar of loop-player to 8
    set score "{@Game}: &fFFA" in sidebar of loop-player to 7
    set score "&c" in sidebar of loop-player to 6
    set score "{@Kills}: &f%{Kills.%loop-player%.Game}%" in sidebar of loop-player to 5
    set score "{@Players Alive}: &f%number of all players%" in sidebar of loop-player to 4
    set score "&f" in sidebar of loop-player to 3
    set score "&a&lBorder: &F1500" in sidebar of loop-player to 2
    set score "{@Server}" in sidebar of loop-player to 1

    command /UHCScoreTeam:
    permission: uhc.host
    permission message: &cNo Tienes los permisos para usar este comando.
    trigger:
    set {Score.Teams} to true
    set {Score.true} to false
    loop all players:
    wipe loop-player sidebar
    wait 1 ticks
    set name of sidebar of loop-player to " {@Tittle} "
    set score "&b" in sidebar of loop-player to 8
    set score "{@Game}: &fTeams" in sidebar of loop-player to 7
    set score "&c" in sidebar of loop-player to 6
    set score "{@Kills}: &f%{Kills.%loop-player%.Game}%" in sidebar of loop-player to 5
    set score "{@Players Alive}: &f%number of all players%" in sidebar of loop-player to 4
    set score "&f" in sidebar of loop-player to 3
    set score "&a&lBorder: &F1500" in sidebar of loop-player to 2
    set score "{@Server}" in sidebar of loop-player to 1

    command /UHCScoreremove:
    permission: uhc.host
    permission message: &cNo Tienes los permisos para usar este comando.
    trigger:
    set {Score.true} to true
    loop all players:
    wipe loop-player sidebar
    wait 1 ticks
    set name of sidebar of loop-player to " {@Tittle} "
    send " &aLa ScoreBoard ha sido desactivada"

    on join:
    if {Score.true} is true:
    execute console command "/UHCScoreremove"
    else:
    if {Score.FFA} is true:
    execute console command "/UHCScoreFFA"
    if {Score.Teams} is true:
    execute console command "UHCScoreTEAMS"

    command /UHCScoreBoard:
    permission: uhc.host
    permission message: &cNo Tienes los permisos para usar este comando.
    trigger:
    wait 5 tick
    open chest with 3 rows named "&b&lScoreBoard " to player
    wait 5 tick
    format slot 10 of player with diamond sword named "&bActivar ScoreBoard FFA/SOLO" with lore "&aClick para Activar la ScoreBoard FFA/SOLO" to run [make player execute command "UHCScoreFFA"]
    format slot 13 of player with magma cream named "&bActivar ScoreBoard TEAMS" with lore "&aClick para Activar la ScoreBoard Teams" to run [make player execute command "UHCScoreTEAM"]
    format slot 16 of player with redstone named "&cDesactivar ScoreBoard" with lore "&aClick para desactivar la ScoreBoard" to run [make player execute command "UHCScoreremove"]
    format slot 26 of player with red wool named "&cClose" to close
    loop all players:
    set {Kills.%player%.Game} to 0


    on death of player:
    if attacker is a player:
    add 1 to {Kills.%attacker%.Game}

    on death:
    if {Score.true} is true:
    execute console command "/UHCScoreremove"
    else:
    if {Score.FFA} is true:
    execute console command "/UHCScoreFFA"
    if {Score.Teams} is true:
    execute console command "UHCScoreTEAMS"


    If anyone could help that would be great,
    Many thanks!