Skip to content
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

Vanish integration #309

Open
PadowYT2 opened this issue Jul 15, 2024 · 0 comments
Open

Vanish integration #309

PadowYT2 opened this issue Jul 15, 2024 · 0 comments

Comments

@PadowYT2
Copy link

PadowYT2 commented Jul 15, 2024

There are currently no checkers for when the person is vanished or not, there should be checks in:

  • Join/Leave
  • PMs
  • Block range chat
  • ... probably more things that I don't use

Сейчас нету некаких проверок на то что игрок в ванише или нет, должны быть проверки на:

  • Вход/Выход
  • ЛС
  • Чат в блоках
  • ... что то еще что я не использую

Этот код будет работать для всех популярных плагинов:

public boolean isVanished(Player player) {
    return player.getMetadata("vanished").stream().anyMatch(MetadataValue::asBoolean);
}
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

No branches or pull requests

1 participant