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

Add BungeeCord & RedisBungee Support for Player Count in DecentHolograms #278

Open
3 tasks done
Incluuu opened this issue Jan 14, 2025 · 1 comment
Open
3 tasks done

Comments

@Incluuu
Copy link

Incluuu commented Jan 14, 2025

Just making sure

  • I have read the wiki and made sure, this feature is not yet in the plugin.
  • I believe, that this feature is possible to implement.
  • I made sure, that this feature has not been requested yet.

Problem

Currently, DecentHolograms does not support retrieving player counts from BungeeCord or RedisBungee. This makes it impossible to display real-time player counts from multiple servers in a Bungee network without external plugins. HolographicDisplays had built-in support for this, so users migrating to DecentHolograms expect the same functionality.

Feature

I would like to see native BungeeCord & RedisBungee support in DecentHolograms, allowing holograms to display player counts across a Bungee network.

Proposed implementation:

New config options in config.yml

bungee:
enabled: true
refresh-seconds: 3
use-RedisBungee: true

Automatic updates: The plugin sends requests to BungeeCord/RedisBungee every X seconds to get the latest player counts.
Uses Plugin Messaging API: If RedisBungee is enabled, it will use the RedisBungee channel. Otherwise, it will default to BungeeCord messaging.
Ensures seamless integration with DecentHolograms' existing placeholder system.

Alternatives

Using PlaceholderAPI with external plugins (less efficient and requires extra setup).
Custom plugin to fetch data and send it to DecentHolograms.

This feature will allow DecentHolograms to fully support BungeeCord network player counts, making it easier to display real-time server statistics within holograms.

@Andre601
Copy link
Contributor

Just use PlaceholderAPI placeholders for this functionality.

There is no real benefit over a built-in solution outside maybe not relying on a 3rd-party plugin. But every second server in existance has PlaceholderAPI on the server, so there is no excuse to not use it honestly.

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

2 participants