-
-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(vanish-service): Refactor the vanish service to uuid based #126
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
base: next
Are you sure you want to change the base?
Conversation
Code Coverage
|
| boolean canSee(UUID viewerId, UUID targetId); | ||
|
|
||
| boolean isVanishPermitted(P player); | ||
| boolean isVanishPermitted(UUID playerId); |
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.
Missing docs
| public class BukkitPlayerVanishService implements PlayerVanishService<Player> { | ||
| import java.util.UUID; | ||
|
|
||
| public class BukkitPlayerVanishService implements PlayerVanishService { |
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.
can be final if this no api
| if (player == null) return; | ||
|
|
||
| plugin.getServer().getScheduler().getMainThreadExecutor(plugin) | ||
| .execute(() -> plugin.getServer().getOnlinePlayers().forEach(onlinePlayer -> { |
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.
If you use stream you can cleanup the loop
Description
This Pull Request replaces the generic in the vanish service with uuid based methods.
Submitter Checklist
@since TODO.