DynamicTopHolograms
DynamicTopHolograms is a lightweight and flexible plugin that displays dynamic leaderboards using holograms. It supports multiple data sources and integrates seamlessly with DecentHolograms for real-time, visually appealing displays.
Features
- Multiple Data Sources:
- Full PlaceholderAPI support (compatible with most plugins)
- Direct integration with MySQL and SQLite databases
- Native support for ValhallaMMO, EliteMobs, and more
- Fully Customizable Display:
- Display top N players by any numeric value
- Adjustable title and line formatting (with & color codes)
- Ascending or descending sort order
- Simple In-Game Management:
- Create, move, and update holograms using commands
- Multi-world support and precise positioning
- Debug mode for troubleshooting
- Offline Player Support:
- Rankings can include offline player data
✅ Requirements
- PlaceholderAPI
- DecentHolograms
Example Use Cases
Top 10 Richest Players (via PlaceholderAPI):
bash
/dth create moneyTop Top 10 Richest EliteMobs Players
/dth set moneyTop %elitemobs_player_money% 10 &6#{rank} &7{player}: &a${value}
/dth movehere moneyTop
Top 10 Highest Power (via database - ValhallaMMO):
bash
/dth create skillTop Top 10 Highest Power
/dth dbset skillTop valhallammo power.level 10 &6#{rank} &7{player}: &aLvl {value}
/dth movehere skillTop
⚙️ Database Configuration (config.yml)
yaml
database-connectors:
mysql-example:
type: mysql
host: localhost
port: 3306
database: minecraft
username: root
password: password
tables:
players:
player-id: uuid
player-name: name
fields:
money: Balance
kills: Kills
sqlite-example:
type: sqlite
file: plugins/MyPlugin/database.db
tables:
player_stats:
player-id: uuid
player-name: username
fields:
score: Score
wins: Wins
Commands
Command
Description
/dth create <id> <title> Create a new hologram
/dth set <id> <placeholder> <topN> [format] Set PlaceholderAPI-based leaderboard
/dth dbset <id> <connector> <field> <topN> [format] Set database-based leaderboard
/dth title <id> <title> Change the hologram title
/dth order <id> <asc/desc> Set ranking order
/dth movehere <id> Move hologram to current location
/dth move <id> <x> <y> <z> [world] Move hologram to specific coordinates
/dth remove <id> Delete a hologram
/dth list List all holograms
/dth refresh [id] Refresh one or all holograms
/dth reload Reload plugin configuration
/dth debug Toggle debug mode
Permissions
Permission
Description
Default
dynamictopholograms.use Access to base command /dth OP
dynamictopholograms.create Create new holograms OP
dynamictopholograms.set Set hologram with PlaceholderAPI OP
dynamictopholograms.setdb Set hologram with database source OP
dynamictopholograms.title Change hologram title OP
dynamictopholograms.order Change leaderboard order OP
dynamictopholograms.remove Remove holograms OP
dynamictopholograms.list List all holograms OP
dynamictopholograms.refresh Refresh holograms OP
dynamictopholograms.reload Reload plugin configuration OP
dynamictopholograms.debug Toggle debug mode OP
Compatibility
- Minecraft Versions: 1.20.6
- Server Types: Spigot
- Database Support: MySQL, SQLite