Bastian/bstats-metrics

The method add(JsonElement) in the type JsonArray is not applicable for the arguments (Integer)

GoldenretriverYT opened this issue · 5 comments

In the metrics class, there are two errors.
Both are "The method add(JsonElement) in the type JsonArray is not applicable for the arguments (Integer)"

Lines:
661
705

Im getting the same error.

same error

same error

Im getting the same error.

I found a solution. Use this code (I tried a bit to fix it with GSON and it worked and don't forget to change the package name):

Link to code

What Bukkit/Spigot version are you using?

What Bukkit/Spigot version are you using?

I have the same problem, I use spigot 1.8.8