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

RideCommand - config to remove player as vehicle restriction #12327

Merged
merged 4 commits into from
Mar 23, 2025

Conversation

ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Mar 22, 2025

This PR aims to remove the player as vehicle restriction in the vanilla /ride command.
Its well know that the API allows mounting any entity to the player as a passenger, so it seems fitting to allow this in the ride command as well.
Unfortunately Mojang imposed a restriction here.
Some people may often rely on this command for funsies, or possibly even for debugging/testing when writing code.

Doc PR: PaperMC/docs#552

@ShaneBeee ShaneBeee requested a review from a team as a code owner March 22, 2025 19:28
@Owen1212055
Copy link
Member

Not really a fan of changing vanilla behavior of commands like this.

@NonSwag
Copy link
Contributor

NonSwag commented Mar 22, 2025

Plugins can't really hook into this to allow riding players, so some way to allow it anyway would be nice
MAYBE a config option?
But yes, as Owen said, completely removing this check is meh

@ShaneBeee
Copy link
Contributor Author

well dang.

@ShaneBeee ShaneBeee closed this Mar 22, 2025
@kennytv
Copy link
Member

kennytv commented Mar 22, 2025

Owen is cringe that's fine, but yeah a config option would be good

@ShaneBeee
Copy link
Contributor Author

ok cool, I'll attempt a config option, and report back when I get that figured out.

@ShaneBeee
Copy link
Contributor Author

Ok, that was a heck of a lot easier than I expected.
Id love some feedback on my very wordy config option.
Too wordy? Just right? Not wordy enough?

@ShaneBeee ShaneBeee reopened this Mar 22, 2025
@NonSwag
Copy link
Contributor

NonSwag commented Mar 22, 2025

what about skipPlayerRideRestrictionCheck?
Still very long but opposed to rideCommandSkipPlayerAsVehicleRestriction

@ShaneBeee
Copy link
Contributor Author

ShaneBeee commented Mar 22, 2025

what about skipPlayerRideRestrictionCheck? Still very long but opposed to rideCommandSkipPlayerAsVehicleRestriction

I worry that that does not explain which command tho.

I could do rideCommandSkipPlayerRestriction

@NonSwag
Copy link
Contributor

NonSwag commented Mar 22, 2025

i mean, you have the comment... sooo...

@ShaneBeee
Copy link
Contributor Author

i mean, you have the comment... sooo...

true, but that doesn't show in the actual config, ie:
Screenshot 2025-03-22 at 12 58 03 PM

@NonSwag
Copy link
Contributor

NonSwag commented Mar 22, 2025

yaml is weird
i think your name is alright
the average key length in that file makes it appear shorter

@ShaneBeee
Copy link
Contributor Author

yaml is weird i think your name is alright the average key length in that file makes it appear shorter

thank you "suggest-player-names-when-null-tab-completions" for making me look fine 😆

@ShaneBeee ShaneBeee changed the title RideCommand - remove player as vehicle restriction RideCommand - config to remove player as vehicle restriction Mar 22, 2025
@lynxplay
Copy link
Contributor

rideCommandAllowPlayerAsVehicle seems shorter and does the same.
Additionally, please open a pr at papermc/docs for this feaature 👍

@ShaneBeee
Copy link
Contributor Author

rideCommandAllowPlayerAsVehicle seems shorter and does the same. Additionally, please open a pr at papermc/docs for this feaature 👍

Done and done:
PaperMC/docs#552
:)

@Warriorrrr Warriorrrr merged commit 5a6ab97 into PaperMC:main Mar 23, 2025
3 checks passed
@ShaneBeee ShaneBeee deleted the shane/ride-command-player branch March 24, 2025 00:05
@spring-dependency-management

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

7 participants