GH-81 Add support for #onlinePlayers with specific permissions by vLuckyyy · Pull Request #81 · EternalCodeTeam/multification · GitHub
Skip to content

GH-81 Add support for #onlinePlayers with specific permissions#81

Merged
vLuckyyy merged 2 commits into
masterfrom
add-permission-broadcast
Jul 13, 2025
Merged

GH-81 Add support for #onlinePlayers with specific permissions#81
vLuckyyy merged 2 commits into
masterfrom
add-permission-broadcast

Conversation

@vLuckyyy

Copy link
Copy Markdown
Member

No description provided.

@coderabbitai

coderabbitai Bot commented Jul 13, 2025

Copy link
Copy Markdown
Contributor

@P1otrulla P1otrulla self-requested a review July 13, 2025 19:57

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
multification-core/test/com/eternalcode/multification/MultificationTest.java (1)

59-69: Test implementation could be more realistic.

The current test returns all players regardless of the permission parameter. Consider making the permission check more realistic or updating the comment to clarify this is intentional test behavior.

-                // Simulating permission check
-                if (viewer.uuid.equals(ROLLCZI_UUID) || viewer.uuid.equals(LUCKI_UUID)) {
+                // Test implementation: return all players for any permission
+                if (viewer.uuid.equals(ROLLCZI_UUID) || viewer.uuid.equals(LUCKI_UUID)) {
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6e61304 and e8fd998.

📒 Files selected for processing (5)
  • multification-bukkit/src/com/eternalcode/multification/bukkit/BukkitViewerProvider.java (1 hunks)
  • multification-core/src/com/eternalcode/multification/notice/NoticeBroadcast.java (1 hunks)
  • multification-core/src/com/eternalcode/multification/notice/NoticeBroadcastImpl.java (1 hunks)
  • multification-core/src/com/eternalcode/multification/viewer/ViewerProvider.java (1 hunks)
  • multification-core/test/com/eternalcode/multification/MultificationTest.java (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build (17)
🔇 Additional comments (3)
multification-core/src/com/eternalcode/multification/viewer/ViewerProvider.java (1)

14-14: Interface addition looks good.

The new method signature follows the existing pattern and provides a clean way to filter online players by permission.

multification-core/src/com/eternalcode/multification/notice/NoticeBroadcast.java (1)

36-37: Interface addition is consistent.

The method follows the existing builder pattern with proper annotations.

multification-bukkit/src/com/eternalcode/multification/bukkit/BukkitViewerProvider.java (1)

27-36: Permission filtering implementation looks correct.

The method properly filters online players by checking the permission and returns an unmodifiable collection, which is good practice.

…ticeBroadcastImpl.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@vLuckyyy vLuckyyy merged commit 3317b61 into master Jul 13, 2025
2 checks passed
@vLuckyyy vLuckyyy changed the title Add support for #onlinePlayers with specific permissions GH-81 Add support for #onlinePlayers with specific permissions Jul 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants