Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /score [<text>] [<player>] [<number>]:
- usage: &cIncorrect usage
- permission: crownwars.score
- permission message: &c&lHey!&7It seems your not supposed to be doing that. Ask a admin for help
- trigger:
- if arg-1 is "add":
- if player has permission "crownwars.score.admin":
- add arg-3 to {score::%arg-2%}
- send "&6[CW] &aSuccessfully added %arg-3% to %arg-2%s Score"
- if arg-1 is "remove":
- if player has permission "crownwars.score.admin":
- remove arg-3 from {score::%arg-2%}
- send "&6[CW] &aSuccessfully removed %arg-3% from %arg-2%s Score"
- if arg-1 is "set":
- if player has permission "crownwars.score.admin":
- set {score::%arg-2%} to arg-3
- send "&6[CW] &aSuccessfully set %arg-2%s Score to %arg-3%"
- if arg-1 is "clear":
- if player has permission "crownwars.score.admin":
- set {score::%arg-2%} to 0
- send "&6[CW] &aCleared %arg-2%s score"
- if arg-1 is "list":
- if player has permission "crownwars.score.list":
- send "&6[CW] &aScore list"
- loop all players:
- send "&e%Loop-player% - %{score::%loop-player%}%"
- else:
- send "&aScore list"
- loop all players:
- if player has permission "crownwars.receivealerts":
- send "&6[CW] &e%player% Is looking at the scores!"
- loop all players:
- send "&e%Loop-player% - %{score::%loop-player%}%"
- if arg-1 is not set:
- send "&6[CW] &eYour score is %{score::%player%}%"
- On death:
- add 1 to {score::%attacker%}
- on join:
- if {kills::%player's uuid%} is not set:
- set {kills::%player's uuid%} to 0
- if {deaths::%player's uuid%} is not set:
- set {deaths::%player's uuid%} to 0
- while player is online:
- set title of player's scoreboard to "&6&lCROWNWARS"
- set line 5 of player's scoreboard to "&fPlayer: &b%player%"
- set line 4 of player's scoreboard to "&fScore: &b%{Score::%player%}%"
- set line 3 of player's scoreboard to "&fKills: &b%{kills::%player%}%"
- set line 2 of player's scoreboard to "&fDeaths: &b%{deaths::%player%}%"
- set line 1 of player's scoreboard to "&7Server Ip: &bPlay.myserver.co"
- wait 1 second
- on death:
- if attacker is a player:
- if victim is a player:
- add 1 to {kills::%attacker%}
- add 1 to {deaths::%victim%}
- on disconnect:
- clear player's scoreboard
Advertisement
Add Comment
Please, Sign In to add comment