#MY SERVER: Darkmystic.de #TS SERVER: Darkmystic.de #FORUM: http://www.darkmystic.de variables: {kill::*} = 0 {death::*} = 0 command /ranking: trigger: loop {kill::*}: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size} times: set {_n} to {_n}+1 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 wait 1 tick set {_i} to 0 #THIS IS THE MESSAGE WITH TOP KILLS send "&7&m-----------&8< &6Top10 &8>&7&m-----------" loop {_high.to.low.list::*}: add 1 to {_topnumber} set {_player} to "%loop-value%" parsed as offlineplayer send "&7%{_topnumber}% - &c%{_player}% &8» &7%{kill::%loop-value%}% Kills" add 1 to {_i} if {_topnumber} > 9: #this is top 10 you can change it stop send "&7&m------------------------------" on death: if attacker is a player: if victim is player: add 1 to {kill::%name of attacker%} #message "&cPvP &8» &7Du hast den Spieler &c%victim% &7getötet" to attacker #message "&cPvP &8» &7Du wurdest von dem Spieler &c%attacker% &7getötet" to victim add 1 to {death::%victim%} add 3 to {gems.%attacker%} add 1 to attacker's level else if victim is not a player: stop else if attacker is not a player: broadcast "&cPvP &8» &3Der Spieler %victim% ist gestorben!" add 1 to {death::%victim%} command /resetstatsall: permission: reset.stats.of.all.player permission message: &cKeine Rechte trigger: delete {kill::*} delete {death::*} command /stats []: permission: stats.see permission message: &6Stats &8» &r&cDu hast nicht die benötigten Permissions um diesen Befehl auszuführen! trigger: if arg-1 is not set: message "&7&m-----------&r &c&l%player% &r&7&m-----------" message "&7Kills &8➽&c %{kill::%player%}%" message "&7Deaths &8➽&c %{death::%player%}%" message "&7KDR &8➽&c %{kill::%player%}/{deat::%player%}%" message "&7&m-----------&r &c&l%player% &r&7&m-----------" else: if player have permission "stats.see.others": set {_player} to arg-1 wait 1 tick if {_player} has played on this server before: message "&7&m-----------&r &c&l%{_player}% &r&7&m-----------" message "&7Kills &8➽&c %{kill::%{_player}%}%" message "&7Deaths &8➽&c %{death::%{_player}%}%" message "&7KDR &8➽&c %{kill::%{_player}%}/{deat::%{_player}%}%" message "&7&m-----------&r &c&l%{_player}% &r&7&m-----------" else: message "&6Stats &8» &r&6&l%{_player}% &cwar vorher noch nie auf diesem Server!" else: message "&6Stats &8» &r&cDu hast nicht die benötigten Permissions um diesen Befehl auszuführen!" command /resetstats []: permission: stats.reset permission message: &6Stats &8» &r&cDu hast nicht die benötigten Permissions um diesen Befehl auszuführen! aliases: restats trigger: if arg-1 is not set: message "&cUsage: /restats &7(&aPlayer&7)" else: set {_player} to arg-1 wait 1 tick if {_player} has played on this server before: set {kill::%arg-1%} to 0 set {death::%arg-1%} to 0 message "&6Stats &8» &aDie Stats des Spielers &6&l%{_player}%&a wurden erfolgreich resetet!" else: message "&6Stats &8» &r&6&l%{_player}% &cwar vorher noch nie auf diesem Server!"