Code:
Options:
Version: 1.0
#
# W E L C O M E T O
#
# S T A T S
#
# C R E A T E D B Y : J A C K | I P A R I S
#
# (! Please don't edit the settings below unless you know what you are doing !)
Options:
Header: &2» &a&lStats &2&m-----*-------------------------*-----
Footer: &2&m----*---------------------------------*-----
Main Colour: &a
Second Colour: &2
on join:
if {Stats::%uuid of player%::firsttime} is not set:
set {Stats::%uuid of player%::firsttime} to "%now%"
if {Stats::%uuid of player%::deaths} is not set:
set {Stats::%uuid of player%::deaths} to 0
if {Stats::%uuid of player%::kills} is not set:
set {Stats::%uuid of player%::kills} to 0
if {Stats::%uuid of player%::blocksbroken} is not set:
set {Stats::%uuid of player%::blocksbroken} to 0
on death:
add 1 to {Stats::%uuid of player%::deaths}
if attacker is a player:
add 1 to {Stats::%uuid of player%::kills}
on break:
add 1 to {Stats::%uuid of player%::blocksbroken}
on join:
if {hourcounter::%player's uuid%} is not set:
set {hourcounter::%player's uuid%} to 0
if {minutecounter::%player's uuid%} is not set:
set {minutecounter::%player's uuid%} to 0
set {counter.%player%} to true
while {counter.%player%} is true:
wait 1 minute
add 1 to {minutecounter::%player's uuid%}
if {minutecounter::%player's uuid%} = 60:
set {minutecounter::%player's uuid%} to 0
add 1 to {hourcounter::%player's uuid%}
command /stats:
trigger:
send ""
send "{@Header}"
send "&7&oView your stats since playing on the server"
send ""
json("%player%"," {@Second Colour}({@Main Colour}First Join{@Second Colour})||ttp:&7You first joined on%newline%{@Main Colour}%{Stats::%player's uuid%::firsttime}%|| {@Second Colour}({@Main Colour}Time Played{@Second Colour})||ttp:&7You have played a total of%newline%{@Main Colour}%{hourcounter::%player's uuid%}% &7Hours%newline%{@Main Colour}%{minutecounter::%player's uuid%}% &7Minutes ")
send ""
json("%player%"," {@Second Colour}({@Main Colour}Kills{@Second Colour})||ttp:&7You have killed a total of%newline%{@Main Colour}%{Stats::%player's uuid%::kills}%&7 Players|| {@Second Colour}({@Main Colour}Deaths{@Second Colour})||ttp:&7You have died a total of%newline%{@Main Colour}%{Stats::%player's uuid%::deaths}%&7 Times")
send ""
json("%player%"," {@Second Colour}({@Main Colour}Blocks Broken{@Second Colour})||ttp:&7You have broken a total of%newline%{@Main Colour}%{Stats::%player's uuid%::blocksbroken}%&7 Blocks|| {@Second Colour}({@Main Colour}Balance{@Second Colour})||ttp:&7You have a total of%newline%{@Main Colour}%balance of player% &7Money")
send ""
send "{@Footer}"
Error:
[22:17:55 ERROR]: can't understand this event: 'on join' (Stats (1).sk, line 25: on join:') [22:17:55 ERROR]: can't understand this event: 'on death' (Stats (1).sk, line 35: on death:') [22:17:55 ERROR]: can't understand this event: 'on break' (Stats (1).sk, line 40: on break:') [22:17:55 ERROR]: can't understand this event: 'on join' (Stats (1).sk, line 43: on join:') [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! [Skript] Severe Error: [22:17:55 ERROR]: #!#! Could not load Stats (1).sk [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong. [22:17:55 ERROR]: #!#! If you're a server admin however please go to
https://github.com/bensku/Skript/issues/ [22:17:55 ERROR]: #!#! and check whether this error has already been reported. [22:17:55 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service), [22:17:55 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error. [22:17:55 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well. [22:17:55 ERROR]: #!#! By following this guide fixing the error should be easy and done fast. [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! Stack trace: [22:17:55 ERROR]: #!#! java.lang.IllegalStateException: Cannot use classinfos until registration is over [22:17:55 ERROR]: #!#! at ch.njol.skript.registrations.Classes.checkAllowClassInfoInteraction(Classes.java:240) [22:17:55 ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfos(Classes.java:245) [22:17:55 ERROR]: #!#! at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:414) [22:17:55 ERROR]: #!#! at ch.njol.skript.registrations.Classes.parse(Classes.java:449) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:385) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:445) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1159) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:219) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:174) [22:17:55 ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59) [22:17:55 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:659) [22:17:55 ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:465) [22:17:55 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:409) [22:17:55 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:243) [22:17:55 ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:267) [22:17:55 ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:187) [22:17:55 ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [22:17:55 ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [22:17:55 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [22:17:55 ERROR]: #!#! at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627) [22:17:55 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412) [22:17:55 ERROR]: #!#! at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375) [22:17:55 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [22:17:55 ERROR]: #!#! at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [22:17:55 ERROR]: #!#! at java.lang.Thread.run(Thread.java:745) [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! Version Information: [22:17:55 ERROR]: #!#! Skript: 2.2-dev29 [22:17:55 ERROR]: #!#! Bukkit: 1.8.8-R0.1-SNAPSHOT [22:17:55 ERROR]: #!#! Minecraft: 1.8.8 [22:17:55 ERROR]: #!#! Java: 1.8.0_112 (Java HotSpot(TM) 64-Bit Server VM 25.112-b15) [22:17:55 ERROR]: #!#! OS: Linux amd64 3.14.32-xxxx-grs-ipv6-64 [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! Running CraftBukkit: false [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! Current node: send "" (Stats (1).sk, line 62) [22:17:55 ERROR]: #!#! Current item: null [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! Thread: Server thread [22:17:55 ERROR]: #!#! [22:17:55 ERROR]: #!#! End of Error. [22:17:55 ERROR]: #!#!