EssentialsX

EssentialsX

2M Downloads

Can't access cactus_green or green_dye with "/i" and "/give" command

axemwa opened this issue ยท 12 comments

commented

Possible Bug

Description
Can't access cactus_green or green_dye with "/i" and "/give" command

CACTUS_GREEN doesn't appear to be in the material list anymore
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

/essentials version output

[10:00:33 INFO]: Server version: 1.13.2-R0.1-SNAPSHOT git-Paper-641 (MC: 1.13.2)
[10:00:33 INFO]: EssentialsX version: 2.17.1.0
[10:00:33 INFO]: LuckPerms version: 4.4.1
[10:00:33 INFO]: Vault version: 1.7.2-b107
[10:00:33 INFO]: EssentialsXGeoIP version: 2.17.1.0

commented

@md678685 It fixes green_dye but not cactus_green. I'm assuming this may have been what you meant by "it doesn't quite have the same amount of aliases as the previous items.json" though, since I'm not sure if the game ever did call it cactus_green or if that was just an essentials built-in alias. In any case, I'd say it's working though with the PR.

commented

I can also confirm this in 1.15. Going to remove the "not enough info" label since I think it's pretty clear how to replicate this bug. The command /minecraft:give <player> green_dye works, but /essentials:give <player> green_dye does not.

Server details:

[15:25:39 INFO]: Server version: 1.15.1-R0.1-SNAPSHOT git-Paper-29 (MC: 1.15.1)
[15:25:39 INFO]: EssentialsX version: 2.17.1.29
[15:25:39 INFO]: LuckPerms version: 4.4.1
[15:25:39 INFO]: Vault version: 1.7.2-b107
[15:25:39 INFO]: EssentialsXProtect version: 2.17.1.29
[15:25:39 INFO]: EssentialsXGeoIP version: 2.17.1.29
[15:25:39 INFO]: EssentialsXChat version: 2.17.1.29
[15:25:39 INFO]: EssentialsXAntiBuild version: 2.17.1.29
[15:25:39 INFO]: EssentialsXSpawn version: 2.17.1.29
commented

Could you test this with the items.json file from #2897? That should include fallbacks for items that changed between versions.

commented

Both legacy aliases and fallbacks to the old materials have been added as of d92f5ce - you can download the latest build from the downloads page.

commented

sure

commented

I also use ViaVersion (so newer client versions can join) and ProtocolSupport (so older client versions can join) whether they be affecting it I dunno. I am joining with a 1.13.2 client same as the server though when I test this

commented

Have you tried deleting items.json and restarting the server? The latest items.json includes names for both 1.13 and 1.14 and should work on both versions.

commented

I tried that but now I get these errors

image

Do you think it might have to do with the fact that I'm using paper?
Cactus green is showing up in creative menu I just can't access it from essentials give or i commands

commented

Could you run /ess debug, then try /i green_dye 1 and post the error from the console log?

commented

any luck identifying the issue?

commented

Can reproduce on the following version:

[01:23:00 INFO]: CONSOLE issued server command: /ess version
[01:23:00 INFO]: Server version: 1.13.2-R0.1-SNAPSHOT git-Paper-624 (MC: 1.13.2)
[01:23:00 INFO]: EssentialsX version: 2.17.1.11

Running /itemdb ingame while holding cactus green returns this along with this stacktrace in debug mode:

image