Skip to content

dependency: Update Versions.MULTIFICATION to v1.2.2 (patch) #1046

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

Merged
merged 4 commits into from
Jul 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object Versions {
const val PAPER_API = "1.21.3-R0.1-SNAPSHOT"

const val ETERNALCODE_COMMONS = "1.1.7"
const val MULTIFICATION = "1.2.1"
const val MULTIFICATION = "1.2.2"

const val JETBRAINS_ANNOTATIONS = "26.0.2"
const val PLACEHOLDER_API = "2.11.6"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.eternalcode.core.user.User;
import com.eternalcode.core.user.UserManager;
import com.eternalcode.multification.viewer.ViewerProvider;
import java.util.List;
import org.bukkit.Server;
import org.bukkit.command.BlockCommandSender;
import org.bukkit.command.CommandSender;
Expand Down Expand Up @@ -51,6 +52,19 @@ public Collection<Viewer> onlinePlayers() {
return audiences;
}

@Override
public Collection<Viewer> onlinePlayers(String permission) {
Set<Viewer> audiences = new HashSet<>();

for (Player player : this.server.getOnlinePlayers()) {
if (player.hasPermission(permission)) {
audiences.add(this.player(player.getUniqueId()));
}
}

return audiences;
}

@Override
public Viewer console() {
return BukkitViewerImpl.console();
Expand Down