Error with commands Caused by: java.lang.IllegalStateException: key must be lowercase
Skiller9090 opened this issue ยท 14 comments
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.
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.
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 ?
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.
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
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)
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
what's nav-wand set to in your config? also would you mind joining discord (https://discord.gg/enginehub), easier to discuss there