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

Minestom Support #3521

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open

Minestom Support #3521

wants to merge 53 commits into from

Conversation

Codestech1
Copy link

No description provided.

kezz and others added 30 commits April 21, 2021 23:26
# Conflicts:
#	api/src/main/java/net/luckperms/api/platform/Platform.java
@Codestech1
Copy link
Author

#3519 But with hydrogen's credit

@Codestech1 Codestech1 mentioned this pull request Nov 13, 2022
@underscore11code
Copy link
Member

I think reposting this comment from @dev-hydrogen is relevant

That also ignores the issue that the way this works is at best untested, and at worst unstable. How i made my fork work, is that it (tries) to sync up permissions between luckperms and minestom when the player join, and then listens to the luckperms api to sync any changes that happen after that. This approach doesnt allow for any nice-to-haves like wildcard support, as that would mean needing to override hasPermission, which currently is not possible on minestom.

Theres a reason i never made a pull request from my fork, I don't trust it enough to be used anywhere other than on my own servers.

@underscore11code underscore11code added the type: new platform The issue is suggesting the implementation of a new platform / platform version. label Nov 13, 2022
@Codestech1
Copy link
Author

I think reposting this comment from @dev-hydrogen is relevant

That also ignores the issue that the way this works is at best untested, and at worst unstable. How i made my fork work, is that it (tries) to sync up permissions between luckperms and minestom when the player join, and then listens to the luckperms api to sync any changes that happen after that. This approach doesnt allow for any nice-to-haves like wildcard support, as that would mean needing to override hasPermission, which currently is not possible on minestom.
Theres a reason i never made a pull request from my fork, I don't trust it enough to be used anywhere other than on my own servers.

Ik, but tell it for minestom, currently (if you merge) you can only note users about limitations. If minestom extensiona will add able to override hasPermission - i will do new pr. Lucko should choose: no minestom or minestom with limitations (e.g. no wildcards). Sorry for bad english

@Codestech1
Copy link
Author

I have idea for wildcards, but i will do this in other pr (if you merge this).

@General-Zimmer General-Zimmer mentioned this pull request Dec 8, 2022
@Codestech1
Copy link
Author

It's ready to use, you don't need wildcards, latest version of minestom has it built in.

@lucko
Copy link
Member

lucko commented May 11, 2023

I'm still unsure whether this should be part of the original project, but I am definitely against merging it until Minestom sort out their Maven repository situation and/or start creating proper releases.

The Jitpack releases expire after a while and are a source of annoyance in my other projects which support Minestom (e.g. spark)

@Codestech1
Copy link
Author

I'm still unsure whether this should be part of the original project, but I am definitely against merging it until Minestom sort out their Maven repository situation and/or start creating proper releases.

The Jitpack releases expire after a while and are a source of annoyance in my other projects which support Minestom (e.g. spark)

Yeah, i agree, they should make their own maven repository.

@xHyroM
Copy link

xHyroM commented Sep 2, 2023

It's ready to use, you don't need wildcards, latest version of minestom has it built in.

I tried this but when someone sets permission from another server it doesn't update permissions in minestom server so i can still use /lp commands

edit: i fixed it by using https://github.com/nindza-pro/LuckPerms/blob/minestom-support/minestom/src/main/java/me/lucko/luckperms/minestom/listener/PlayerNodeChangeListener.java#L65-L72 instead

xHyroM and others added 2 commits September 2, 2023 21:02
* Fix issues with postgres storage backend (LuckPerms#3647)

* Tag docker images with LP version

* Fix github action to fetch repo with tags

* Update Fabric/Forge to Minecraft 1.20

Co-authored-by: Aurelien <aurelien.domino@gmail.com>

* Switch back to official Postgres JDBC driver

* Fix Forge reobf shadowjar (LuckPerms#3675)

* Include standalone data directory in gitignore (LuckPerms#3671)

* Improve console detection on Fabric/Forge (LuckPerms#3673)

* Update Forge/Fabric to 1.20.1

* Fix user deletion not being correctly processed on SQL backends (LuckPerms#3664)

* Add support for redis cluster (LuckPerms#3670)

* Update GitHub URLs to new location (LuckPerms#3686)

* Refactor gradle plugin version handling (LuckPerms#3665)

* Render minimessage in prefix/suffix/meta values (LuckPerms#3672)

* whoops (LuckPerms#3691)

* Delete temporary H2 v1 to v2 migration script if exists (LuckPerms#3693)

* Print test output when ran through Gradle

* Add more unit/integration tests

* Add missing future join call to storage test

* Add jacoco report gradle plugin

* Use ansi component serializer

* Use driver class instead of datasource for Postgres (LuckPerms#3705)

* Fix race error in bulk update integration test

---------

Co-authored-by: Luck <git@lucko.me>
Co-authored-by: Aurelien <aurelien.domino@gmail.com>
Co-authored-by: powercas_gamer <cas@deltapvp.net>
Co-authored-by: Drex <nicknamedrex@gmail.com>
Co-authored-by: Dominik <yt.dominik48n@gmail.com>
Co-authored-by: Mart <me@mja00.dev>
@Bloeckchengrafik
Copy link

It's ready to use, you don't need wildcards, latest version of minestom has it built in.

With those, negated permissions won't work (at least in my testing)

@ajh123
Copy link

ajh123 commented Mar 29, 2024

Well Minestom is now on Maven central, so we no longer need Jitpack. However there is no official extension support in the newest version so https://github.com/hollow-cube/minestom-ce-extensions has to be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: new platform The issue is suggesting the implementation of a new platform / platform version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants