Skip to content

Placeholder %statistic_mine_block% raise exception #5

@Qveshn

Description

@Qveshn

There is a bug with expansion statistic, placeholder %statistic_mine_block%

/papi parse myname %statistic_mine_block%

[23:04:07] [Server thread/WARN]: Unexpected exception while parsing console command "papi parse myname %statistic_mine_block%"
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.9.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:648) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchServerCommand(CraftServer.java:634) [spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at net.minecraft.server.v1_12_R1.DedicatedServer.aP(DedicatedServer.java:444) [spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:407) [spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Caused by: java.lang.IllegalArgumentException: The supplied Material does not have a corresponding statistic
    at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer.getStatistic(CraftPlayer.java:662) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    at com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion.onPlaceholderRequest(StatisticsExpansion.java:86) ~[?:?]
    at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:38) ~[PlaceholderAPI-2.9.2.jar:?]
    at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:237) ~[PlaceholderAPI-2.9.2.jar:?]
    at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:205) ~[PlaceholderAPI-2.9.2.jar:?]
    at me.clip.placeholderapi.commands.PlaceholderAPICommands.onCommand(PlaceholderAPICommands.java:186) ~[PlaceholderAPI-2.9.2.jar:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.12.2-1573-i.jar:git-Spigot-e8ded36-acbc348]
    ... 8 more

Looks like not all "block" materials have statistic 😉

Info:

/version
This server is running CraftBukkit version git-Spigot-e8ded36-acbc348 (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
This is a final build for 1.12.2. Please see https://www.spigotmc.org/ for details about upgrading.

/papi
PlaceholderAPI version 2.9.2
Created by: extended_clip

/papi info statistic
Placeholder expansion info for: statistic
Status: Registered
Created by: clip
Version: 1.9.2

/papi ecloud info statistic
Statistic -- http://api.extendedclip.com/media/PAPI-Expansion-Statistic_BcbA2ZL.jar

/papi ecloud versioninfo statistic 1.9.2
Expansion: Statistic
Version: 1.9.2
Version info: Fixed issues with 1.12
Download url: http://api.extendedclip.com/media/PAPI-Expansion-Statistic_BcbA2ZL.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions