Sponge
Sponge copied to clipboard
Incorrect identification of the command executor on SpongeForge 1.19.4.
Affected Product(s)
SpongeForge
Version
1.19.4-45.1.19-10.0.0-RC1461
Operating System
Linux/6.7.2-arch1-1 (amd64)
Java Version
17.0.8/64-bit (BellSoft)
Plugins/Mods
Plugins (7): NoChatReports, LocaleAPI, MySQLDriver, H2Driver, CommandPack, Regionguard, ChatManager.
Mods (5): Minecraft, Forge, SpongeForge, Sponge, SpongeAPI.
Describe the bug
Example code:
Command.builder()
.executionRequirements(cause -> (
cause.first(ServerPlayer.class).isPresent()) //Not worked on SpongeForge 1.19.4. Always false.
)
.executor(this)
.build();
cause.all() contains only net.minecraft.server.dedicated.DedicatedServer
Link to logs
No response