-
-
Notifications
You must be signed in to change notification settings - Fork 688
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
Added a simple way to get a player by their xuid #1642
Conversation
… make logging of the pinging IPs possible
While this method won't be called a lot, I still recommend using plain for loops |
Any reasons for that? |
For loops are better for performance. |
Might also be better to name it |
I named this method getPlayer... because the corresponding methods are named "addPlayer" and "removePlayer". But I can easily change the name of it and replace the for loops. |
Ah your correct, leave the method name as-is for now then. |
And just found out that nowhere the player is retrieved by the XUID, only by the UUID of the player entity. Should I create an extra method for that? |
If you don't mind, would make sense to roll it into this PR since they are very simmilar. |
done |
connector/src/main/java/org/geysermc/connector/GeyserConnector.java
Outdated
Show resolved
Hide resolved
connector/src/main/java/org/geysermc/connector/GeyserConnector.java
Outdated
Show resolved
Hide resolved
Can you also add |
….java Co-authored-by: rtm516 <[email protected]>
….java Co-authored-by: rtm516 <[email protected]>
Simple method to get a player by their Xbox UUID. Can be used by Bungee plugins that need to access the GeyserSession