Skip to content

Conversation

@EinNiki
Copy link
Collaborator

@EinNiki EinNiki commented Dec 12, 2025

No description provided.

@@ -0,0 +1,20 @@
plugins {
Copy link
Member

Choose a reason for hiding this comment

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

bitte alles außer version und group entfernen

ClanManager.sendClanMessage(player, clan, Component.text(waypointMessage))

Bukkit.getOnlinePlayers().forEach { onlinePlayer ->
if (PlayerManager.getClan(onlinePlayer) == PlayerManager.getClan(player)) {
Copy link
Member

@BenDerFarmer BenDerFarmer Dec 14, 2025

Choose a reason for hiding this comment

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

don't the clan of the player every time in the loop use clan var on line 64, don't use getClan from onlinePlayer use getClanName an compare that, saves time on gson parsing

Suggested change
if (PlayerManager.getClan(onlinePlayer) == PlayerManager.getClan(player)) {
if (PlayerManager.getClanName(onlinePlayer) == clan.name) {

Even better loop over clan.members get the player by uuid if not null play the sound

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.

3 participants