Package com.maximde.hologramlib.hologram
Class LeaderboardHologram
java.lang.Object
com.maximde.hologramlib.hologram.LeaderboardHologram
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
teleport
(org.bukkit.Location location) void
updateLeaderboard
(Map<Integer, String> leaderboardData, LeaderboardHologram.LeaderboardOptions leaderboardOptions) Updates the leaderboard display with new data.
-
Constructor Details
-
LeaderboardHologram
-
-
Method Details
-
updateLeaderboard
public void updateLeaderboard(Map<Integer, String> leaderboardData, LeaderboardHologram.LeaderboardOptions leaderboardOptions) Updates the leaderboard display with new data.- Parameters:
leaderboardData
- Map of position -> "playername:score" entries and the keys (Integer) in the map are used for the players ranking in the leaderboardleaderboardOptions
- Configuration options for the display Formats and displays the leaderboard entries according to the specified options, including special formatting for top 3 places and optional player head display.
-
teleport
-
getLocation
public org.bukkit.Location getLocation()
-