Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every tick:
- loop all players:
- set name of sidebar of loop-player to "&3&lWelcome to the server"
- set score "&9Your name: &b%loop-player%" in sidebar of loop-player to 0
- set score "&9Kills: &b%{kills::%UUID of loop-player%}%" in sidebar of loop-player to -1
- set score "&9Deaths: &b%{deaths::%UUID of loop-player%}%" in sidebar of loop-player to -2
- set score "&9K/D: &b%{kd::%UUID of loop-player%}%" in sidebar of loop-player to -3
- on first join:
- set {kills::%UUID of player%} to 0
- set {deaths::%UUID of player%} to 0
- set {kd::%UUID of player%} to 0
- on join:
- set {login.%UUID of player%} to 1
- command /editplayerstats [<text>] [<player>] [<text>] [<number>]:
- permission: sk.command.eps
- aliases: /eps
- trigger:
- if arg-1 is not "add" or "set":
- send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-1 is not set:
- send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-3 is not "kills" or "deaths":
- send "&cUsage:/editplayerstats <add|set> <player> <kills|deaths> <count>"
- stop
- if arg-1 is "add":
- if arg-3 is "kills":
- add arg-4 to {kills::%UUID of arg-2%}
- send "&b%arg-4% added to Kills of %arg-2%"
- wait 1 tick
- wipe arg-2's sidebar
- if arg-3 is "deaths":
- add arg-4 to {deaths::%UUID of arg-2%}
- send "&b%arg-4% added to Deaths of %arg-2%"
- wait 1 tick
- wipe arg-2's sidebar
- if arg-1 is "set":
- if arg-3 is "kills":
- set {kills::%UUID of arg-2%} to arg-4
- send "&bKills of %arg-2% was set to %arg-4%"
- wait 1 tick
- wipe arg-2's sidebar
- if arg-3 is "deaths":
- set {deaths::%UUID of arg-2%} to arg-4
- send "&bDeaths of %arg-2% was set to %arg-4%"
- wait 1 tick
- wipe arg-2's sidebar
- on death:
- victim is a player
- if attacker is a player:
- strike lightning effect at victim
- add 1 to {deaths::%UUID of victim%}
- add 1 to {kills::%UUID of attacker%}
- set the death message to "&3%victim%&bは&3%attacker%&bに殺された"
- force victim to respawn
- wait 1 tick
- wipe attacker's sidebar
- wipe victim's sidebar
- if attacker is not a player:
- add 1 to {deaths::%UUID of victim%}
- force victim to respawn
- set the death message to "&3%victim%&bは死亡した"
- wait 1 tick
- wipe victim's sidebar
- every tick:
- loop all players:
- if {deaths::%UUID of loop-player%} is not 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}/{deaths::%UUID of loop-player%}
- if {deaths::%UUID of loop-player%} is 0:
- set {kd::%UUID of loop-player%} to {kills::%UUID of loop-player%}+{deaths::%UUID of loop-player%}
- add 0 to {kills::%UUID of loop-player%}
- add 0 to {deaths::%UUID of loop-player%}
- add 0 to {kd::%UUID of loop-player%}
- command /playerstatus [<offline player>]:
- aliases: /pstatus,/status
- usage: &c/playerstatus <player>
- trigger:
- if arg-1 is set:
- if {login.%UUID of arg-1%} is 1:
- send "&3%arg-1%'s status"
- send "&9Kills: &b%{kills::%UUID of arg-1%}%"
- send "&9Deaths: &b%{deaths::%UUID of arg-1%}%"
- send "&9K/D: &b%{kd::%UUID of arg-1%}%"
- else:
- send "&7[&4Error&7] &cThat player's status is not found"
- if arg-1 is not set:
- send "&3%player%'s status"
- send "&9Kills: &b%{kills::%UUID of player%}%"
- send "&9Deaths: &b%{deaths::%UUID of player%}%"
- send "&9K/D: &b%{kd::%UUID of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment