-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Removed PaperLib #2577
base: develop
Are you sure you want to change the base?
Removed PaperLib #2577
Conversation
Thanks!
Either way, thanks for the PR. I will study it.
|
I'm unsure why it works for you, but in any case the library is going to be discontinued as mentioned in their github repo so it'll be best to remove anything related to PaperLib asap. Almost everything I changed is provided by Paper's API. To check if the server is using paper I simply check if a class from Paper's API like the ParticleBuilder is present, and it's also a class that's likely to stay. There's also a method I commented out (In Util class) because I have no idea how I could recreate it. There's nothing in Paper's API for it and the object that it returns also doesn't exist. You might need to look how PaperLib does it and copy that, but from what I can see nothing used it so it might be easier to just remove it. |
TODO: Get test working in Paper-land. Relates to ##2577
Hey, tanks for this. What I've done is incorporated most of your changes into #2580 and merged that in. The main point of that PR is to keep Spigot compatibility, for now. However, I do anticipate moving to only using Paper, so that is when merging this in will make sense. I will credit you in the 3.2.0 release, for sure. So, just to sum up what I did:
The TODO plan is:
|
Is there a reason you're using reflection instead of calling isPaper(), since you're using the latest version, you're pretty much guaranteed to have those methods if isPaper(). Or you could just straight up call entity.teleportAsync in a try catch with a NoSuchMethodException, basically what you're already doing but without reflection. Anyway, I can help you with the tests. Should I close my current fork since it's no longer needed and create a new one for tests? |
Thank you for your support!
I agree with you on reflection, but in this case it is required to keep compatibility with Spigot servers (for now) because a try-catch block does not work (I tried it) because a
Yes, you can close this one and open newer ones. I have started on enabling the tests to work with the paper-api. Generally, there are a lot of updates required so I have marked classes that have errors or failures with @ignore and then some reference to PaperAPI. So far, this is what I have done:
The outstanding items are:
I realize this is quite advanced test development, and I'll be plugging at it over this week. If you want to have a go at solving some of these issues (just comment out an @ignore and compile to get started) then I would be grateful. I should also probably look at the Paper test code and see how they do it. Or you can! All the best! |
Alright, I'll see what I can do about the tests after New Years. |
PaperLib has been removed from further paper versions. It now needs to be removed and replaced with paper's api.
https://github.com/PaperMC/PaperLib
The repo for it has been archived about a week ago. The README file states:
"PaperLib was meant as a temporary means of using more powerful Paper API while allowing full compatibility with Spigot as was necessary for a lot of people. Now, you're better off directly targeting Paper and uploading your plugin to one of the many other resource sites, such as Hangar, modrinth, BuiltByBit, or Polymart."
This has already affected some users on the newest paper versions and have been reported on the discord chat that they can no longer use BentoBox:
https://discord.com/channels/272499714048524288/310623455462686720/1322256049998397461
https://discord.com/channels/272499714048524288/310623455462686720/1322003693817561159
https://discord.com/channels/272499714048524288/310623455462686720/1321950945399017575
https://discord.com/channels/272499714048524288/310623455462686720/1321945727773184060
https://discord.com/channels/272499714048524288/310623455462686720/1321661933010812990
IslandsManagerTest needs to be fixed as well, but I have no idea how and I've not touched it.