Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect identification of the command executor on SpongeForge 1.19.4. #3939

Open
SawFowl opened this issue Jan 29, 2024 · 0 comments
Open
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working

Comments

@SawFowl
Copy link
Contributor

SawFowl commented Jan 29, 2024

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

@SawFowl SawFowl added status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working labels Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant