-
-
Notifications
You must be signed in to change notification settings - Fork 357
Support Folia #3277
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
Open
Euphillya
wants to merge
61
commits into
CitizensDev:master
Choose a base branch
from
Euphillya:support-folia
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support Folia #3277
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
11ee901
Ajout Folia Supported dans plugin.yml
Euphillya 33aa586
Folia ne permet pas de supprimer les NPcs quand il s'arrête
Euphillya 69127b3
Replace scheduler dans Citizens.java
Euphillya 67ee2c4
Replace scheduler dans EventListen.java
Euphillya ecb0be3
Replace scheduler in Metrics.java
Euphillya 26a5979
Replace scheduler dans NPCCommands.java
Euphillya 9873001
Replace scheduler dans CitizensNPC.java
Euphillya d49c245
Replace scheduler dans Skin.java
Euphillya 303106c
Replace scheduler dans SkinPacketTracker.java
Euphillya e6be69c
Replace scheduler dans SkinUpdateTracker.java
Euphillya ce49c2c
Replace scheduler dans ProfileFetchThread.java
Euphillya 20f9d91
Replace scheduler dans ProfileFetcher.java
Euphillya 9802e10
Replace scheduler dans ProfileRequest.java
Euphillya 4626065
Replace scheduler dans CommandTrait.java
Euphillya c0f6622
Replace scheduler dans PacketNPC.java
Euphillya b418e49
Scordboard not supported on folia
Euphillya a8dec93
Replace scheduler dans ShopTrait.java
Euphillya 6ef64b9
Replace scheduler dans OpenShopAction.java
Euphillya 1d77e3e
Replace scheduler dans GuidedWaypointProvider.java
Euphillya 29659f4
Replace scheduler dans LinearWaypointProvider.java
Euphillya 0a19dac
Replace scheduler dans WanderWaypointProvider.java
Euphillya 170a618
Replace scheduler dans Waypoint.java
Euphillya 740fa96
Replace scheduler dans DelayTrigger.java
Euphillya 77ebfdf
Replace scheduler dans PlayerAnimation.java
Euphillya 800fbdc
Replace scheduler dans PlayerUpdateTask.java
Euphillya ded99e6
callPossiblySync peut pas être appeler dans Folia
Euphillya f0aba2f
Ajout d'une vérification sur certaines fonctions pour savoir si nous …
Euphillya 1a5992e
Replace callPossiblySync dans le NMS
Euphillya 71c926b
Support Tracker entity folia
Euphillya 6ba15fc
Replace scheduler dans NMS EntityHumanNPC
Euphillya f886b57
Merge branch 'CitizensDev:master' into support-folia
Euphillya 12f2fda
NPCs can spawn
Euphillya daf51ca
Fix teleport not async on folia
Euphillya b3618fa
Merge branch 'CitizensDev:master' into support-folia
Euphillya 87759cb
Executer une commande sur le bon thread
Euphillya af87bbf
Merge branch 'support-folia' of https://github.com/Euphillya/Citizens…
Euphillya b571f12
Fix double appel super.updatePlayer
Euphillya da25c58
Fix forceload
Euphillya ae453cb
Fix spawn mauvais thread pour les autres entités qui ne sont pas des …
Euphillya e1a3372
Merge branch 'CitizensDev:master' into support-folia
Euphillya 3e3b046
On ne peux pas Entity#snapTo sur Folia, on fait une teleportation
Euphillya 3178e34
Resupport spigot /npc create
Euphillya 415d866
Fix update ticket
Euphillya a6249a7
COW ne permet pas de remove (UnsupportedOperationException)
Euphillya 1792599
Merge branch 'CitizensDev:master' into support-folia
Euphillya 3a9004a
Merge branch 'CitizensDev:master' into support-folia
Euphillya 46ebee2
Merge branch 'master' into support-folia
Euphillya 85902de
Merge branch 'CitizensDev:master' into support-folia
Euphillya dbfc5a1
Enlever la lambda syntax
Euphillya 64ad032
Fix upstream
Euphillya 5e5954b
Mettre en import SchedulerRunnable
Euphillya df155cd
Changer cancelledUpdatePlayer en cancellableUpdatePlayer
Euphillya 1604d7b
Cache method handled
Euphillya 234e80f
Merge branch 'master' into support-folia
Euphillya 60bbf5f
Fix update upstream
Euphillya 469dcb9
Utiliser snapTo seulement sur la même region
Euphillya cff0682
enlever le commentaire todo
Euphillya caab819
Merge branch 'CitizensDev:master' into support-folia
Euphillya d084a13
Merge branch 'CitizensDev:master' into support-folia
Euphillya 4f48cc5
Remove Util#callPossiblySync
Euphillya 34eae05
Etre sur que NpcRegistry et TraitFactory n'ai pas de problème de conc…
Euphillya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because you can't "despawn" the NPCs while the server is down. But fortunately, they despawn during the shutdown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More specifically, Folia's regional threads are all shutting down during the server shutdown, so it is impossible to interact with them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is also called by reload (I know...) so maybe needs some change there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I return it if the plugin is disabled, which is false while the server is running, and true when the server stops.