Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Do not edit the text!
- function StatsCommand(s: player, p: player):
- if "%{_s}%" contains "%{_p}%":
- send "&7You'r Stats:" to {_s}
- else:
- send "&6%{_p}%'s &7Stats:" to {_s}
- replace all "<none>" with "0" in {Kills::%{_p}%}
- replace all "<none>" with "0" in {Deaths::%{_p%}
- send "&eKills&8: &7%{Kills::%{_p}%}%" to {_s}
- send "&eDeaths&8: &7%{Deaths::%{_p}%}%" to {_s}
- every 3 seconds:
- loop all players:
- replace all "<none>" with "0" in {Kills::%loop-player%}
- replace all "<none>" with "0" in {Deaths::%loop-player%}
- create hologram "&7You'r Stats;&6Kills&8: &7%{Kills::%loop-player%}%;&6Deaths&8: &7%{Deaths::%loop-player%}%" at {Stats.Hologram.loc} for 3 seconds
- command /setstatsholo:
- trigger:
- if player has permission "stats.setholo":
- set {StatsHologram.loc} to location of player
- send "&cHolo&fStats &8&m--&r &7You have set the hologram!"
- stop
- else:
- send "&cHolo&fStats &8&m--&r &cYou don't have permission to do this!"
- stop
- on death:
- add 1 to {Kills::%attacker%}
- add 1 to {Deaths::%victim%}
Add Comment
Please, Sign In to add comment