WorldEdit

WorldEdit

43M Downloads

Error with commands Caused by: java.lang.IllegalStateException: key must be lowercase

Skiller9090 opened this issue ยท 14 comments

commented

Versions
WorldEdit version: Very lasted build (v7.2.0-SNAPSHOT+4982-df3b373)
Platform version: 1.15.2

Describe the bug
One player on my minecraft server runs a worldedit command it it spits out errors.
Error Log: https://pastebin.com/3k3bgWBF

Expected behavior
Should execute the command such as //wand but doesn't.

commented

you set an invalid wand item in your config

commented

oh?
but this only happens for one person?

commented

image

commented

somehow an invalid item got into their session file (worldedit/sessions folder).

commented

no i checked there too and is what is should be

commented

image
player with the error session

commented

checked the line number - it's the config. https://github.com/EngineHub/WorldEdit/blob/master/worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java#L225
if you're sure your config file is correct, that means something is making it invalid after load.

commented

ok thank you, not a worldedit bug then, tho it probably should have some kind of way to detect the error and then rewrite config where it isnt right ?

commented

dunno, suppose we could catch that exception and rethrow as invalidtoolbind so you get a "nicer" warning message. wouldn't help figure out why the item is changing though, but will tell you what it's being changed to at least.

commented

yeah and then also send it as a warning furthermore you could then set the invalid item to the default wooden_axe and then it would also allow the code to continue on

commented

also i dont know if this is caused by the same error, i assumed but it also happens when the player changed game mode ill send the log, (different error)

commented

https://pastebin.com/pvdkvQ2H
tho if it is the same error i dont know why the gamemode changed would be effected by this?
that would be something to also fix because errors shouldnt be spat out at non-worldedit commands

commented

what's nav-wand set to in your config? also would you mind joining discord (https://discord.gg/enginehub), easier to discuss there

commented

Closed Due to not plugin code error