Jump to content

i have a skript with kill counters but it only seems to work sometimes for some people. i have the same one but with blocks mined and that one works fine.


txiwc

Recommended Posts

this is the skript i use

on join:
    {blocksmined.%player%} is not set:
        set {blocksmined.%player%} to 0
on mine:
    add 1 to {blocksmined.%player%}
options:
 server: &4&lTaxBox
every 1 second:
 loop all players:
  wipe loop-player's sidebar
  set name of sidebar of loop-player to "{@server}"
  set score "&7&m -----------------" in sidebar of loop-player to 6
  set score "    &4&l%loop-player% &7> &4&lStats" in sidebar of loop-player to 5
  set score "&4&lBlocks Mined: &c&l%{blocksmined.%loop-player%}%" in sidebar of loop-player to 4
  set score "&4&lKills: &c&l%{kills.%loop-player%}%" in sidebar of loop-player to 3
  set score "&4&lDeaths: &c&l%{deaths.%loop-player%}%" in sidebar of loop-player to 2
on join:
    if {kills.%player%} is not set:
        set {kills.%player%} to "0"
    if {deaths.%player%} is not set:
        set {deaths.%player%} to "0"
on death:
    if victim is a player:
        if attacker is a player:
            add 1 to {kills.%attacker%}
            add 1 to {deaths.%victim%}

Edited by txiwc
Link to comment
Share on other sites

  • txiwc changed the title to i have a skript with kill counters but it only seems to work sometimes for some people. i have the same one but with blocks mined and that one works fine.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...