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

getFlag #6362

Closed
gamegam opened this issue Jun 15, 2024 · 1 comment
Closed

getFlag #6362

gamegam opened this issue Jun 15, 2024 · 1 comment
Labels
Category: API Related to the plugin API Resolution: Declined PR has been declined by maintainers

Comments

@gamegam
Copy link

gamegam commented Jun 15, 2024

Description

Could you please add functionality within PMMP so that if $player->getNetworkProperties()->getGenericFlag(EntityMetadataFlags::RIDING); does not have the EntityMetadataFlags::RIDING flag for the player or entity in question, it will be treated as null and If present, it is displayed as true.

Justification

If you add this, your creativity will be better.

  1. I'll give you that flag
    Check whether it is granted or not.

  2. It is also useful for making anti-cheats.
    Reason: Add a vaxter or flag and give the rider to that player and it will also be detected by the speed nucleus.
    This allows you to deport only abnormal players without being banished to the server or banished to the server by determining that you are on a rider if you are not null.

Alternative methods

None

@dries-c dries-c added Category: API Related to the plugin API Resolution: Declined PR has been declined by maintainers labels Jun 19, 2024
@dries-c
Copy link
Member

dries-c commented Jun 19, 2024

It's a very specific request and could be integrated into a plugin directly by reversing the FLAGS & FLAGS2 bit responsible for it.

@dries-c dries-c closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: API Related to the plugin API Resolution: Declined PR has been declined by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants