public class ReportSettings extends Object
Constructor and Description |
---|
ReportSettings(Report report) |
Modifier and Type | Method and Description |
---|---|
ReportSettings |
disableDamages()
Disables the damages tab on the report page.
|
ReportSettings |
disablePlayers()
Disables the players tab on the report page.
|
ReportSettings |
disableSummary()
Disables the summary tab on the report page.
|
ReportSettings |
displayDate(boolean date) |
ReportSettings |
displayPlayersCount(boolean playersCount) |
ReportSettings |
displayWinners(boolean winners) |
Report |
done() |
ReportSettings |
enableDamages(boolean perPlayers,
boolean perTeams,
boolean fromEnvironment,
boolean withKiller)
Enables the damages tab on the report page.
|
ReportSettings |
enablePlayers(boolean withPlayTime,
boolean withGlobalStatistics,
boolean withUsed,
boolean withMined,
boolean withPickedUp)
Enables the players tab on the report page, displaying statistics on every players and aggregated global statistics.
|
ReportSettings |
enableSummary(boolean history,
boolean players,
boolean teams)
Enables the summary tab on the report page.
|
Set<org.bukkit.Material> |
getPlayersMinedStatisticsHighlight()
Raw access for advanced manipulation.
|
Set<org.bukkit.Material> |
getPlayersMinedStatisticsWhitelist()
Raw access for advanced manipulation.
|
Set<org.bukkit.Material> |
getPlayersPickedUpStatisticsHighlight()
Raw access for advanced manipulation.
|
Set<org.bukkit.Material> |
getPlayersPickedUpStatisticsWhitelist()
Raw access for advanced manipulation.
|
Set<org.bukkit.Statistic> |
getPlayersStatisticsHighlight()
Raw access for advanced manipulation.
|
Set<org.bukkit.Statistic> |
getPlayersStatisticsWhitelist()
Raw access for advanced manipulation.
|
Set<org.bukkit.Material> |
getPlayersUsedStatisticsHighlight()
Raw access for advanced manipulation.
|
Set<org.bukkit.Material> |
getPlayersUsedStatisticsWhitelist()
Raw access for advanced manipulation.
|
ReportSettings |
highlightingTheseMinedBlocks(Collection<org.bukkit.Material> highlighted)
Highlights these mined blocks in the players tab.
|
ReportSettings |
highlightingTheseMinedBlocks(org.bukkit.Material... highlighted)
Highlights these mined blocks in the players tab.
|
ReportSettings |
highlightingThesePickedUpItems(Collection<org.bukkit.Material> highlighted)
Highlights these picked-up items in the players tab.
|
ReportSettings |
highlightingThesePickedUpItems(org.bukkit.Material... highlighted)
Highlights these picked-up items in the players tab.
|
ReportSettings |
highlightingTheseStatistics(Collection<org.bukkit.Statistic> highlighted)
Highlights these global statistics in the players tab.
|
ReportSettings |
highlightingTheseStatistics(org.bukkit.Statistic... highlighted)
Highlights these global statistics in the players tab.
|
ReportSettings |
highlightingTheseUsedItems(Collection<org.bukkit.Material> highlighted)
Highlights these used items in the players tab.
|
ReportSettings |
highlightingTheseUsedItems(org.bukkit.Material... highlighted)
Highlights these used items in the players tab.
|
com.google.gson.JsonObject |
toJSON() |
ReportSettings |
withGenerator(String name,
String url)
Adds the name of the plugin, or other generator, responsible for this
report's generation.
|
ReportSettings |
withoutGenerator()
Removes any credit for the generator.
|
ReportSettings |
withoutGlobalStatisticsWhitelist()
Displays all collected statistics in the players tab.
|
ReportSettings |
withoutHighlightingAnyGlobalStatistic()
Displays all global statistics equally without hiding anything.
|
ReportSettings |
withoutHighlightingAnyMinedBlock()
Displays all mined blocks equally without hiding anything.
|
ReportSettings |
withoutHighlightingAnyPickedUpItem()
Displays all picked-up items equally without hiding anything.
|
ReportSettings |
withoutHighlightingAnyUsedItem()
Displays all used items equally without hiding anything.
|
ReportSettings |
withoutMinedStatisticsWhitelist()
Displays all collected mined blocks in the players tab.
|
ReportSettings |
withoutPickedUpStatisticsWhitelist()
Displays all collected picked-up items in the players tab.
|
ReportSettings |
withoutUsedStatisticsWhitelist()
Displays all collected used items in the players tab.
|
ReportSettings |
withTheseInGlobalStatisticsWhitelist(Collection<org.bukkit.Statistic> whitelisted)
Only display these global statistics in the players tab.
|
ReportSettings |
withTheseInGlobalStatisticsWhitelist(org.bukkit.Statistic... whitelisted)
Only display these global statistics in the players tab.
|
ReportSettings |
withTheseInMinedStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
Only display these mined blocks in the players tab.
|
ReportSettings |
withTheseInMinedStatisticsWhitelist(org.bukkit.Material... whitelisted)
Only display these mined blocks in the players tab.
|
ReportSettings |
withTheseInPickedUpStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
Only display these picked-up items in the players tab.
|
ReportSettings |
withTheseInPickedUpStatisticsWhitelist(org.bukkit.Material... whitelisted)
Only display these picked-up items in the players tab.
|
ReportSettings |
withTheseInUsedStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
Only display these used items in the players tab.
|
ReportSettings |
withTheseInUsedStatisticsWhitelist(org.bukkit.Material... whitelisted)
Only display these used items in the players tab.
|
public ReportSettings(Report report)
public ReportSettings displayDate(boolean date)
date
- true
to display the match date on the report page.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings displayPlayersCount(boolean playersCount)
playersCount
- true
to display the players count on the report page.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings displayWinners(boolean winners)
winners
- true
to display the winners on the report page. If not manually provided, they will be calculated automatically.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings enableSummary(boolean history, boolean players, boolean teams)
history
- true
to enable the history (“timeline”) section of this tab, displaying all recorded events in order.players
- true
to display the players' list in this tab.teams
- true
to display the teams in this tab. Only displayed if players are also enabled.
If disabled players will be listed as there were no team, even if there are teams.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings disableSummary()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings enableDamages(boolean perPlayers, boolean perTeams, boolean fromEnvironment, boolean withKiller)
perPlayers
- true
to display a per-player summary.perTeams
- true
to display a per-team summary.fromEnvironment
- true
to display a summary of environmental damages.withKiller
- true
to display the killer of each player in the per-player summary.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings disableDamages()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings enablePlayers(boolean withPlayTime, boolean withGlobalStatistics, boolean withUsed, boolean withMined, boolean withPickedUp)
SOme statistics can be highlighted (or whitelisted), see other settings methods for that.
withPlayTime
- Displays the play time for each player.withGlobalStatistics
- Displays the global statistics of each player (plus an aggregation).withUsed
- Displays used items statistics for each player (plus an aggregation).withMined
- Displays mined blocks statistics for each player (plus an aggregation).withPickedUp
- Displays picked-up items statistics for each player (plus an aggregation).ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings disablePlayers()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInGlobalStatisticsWhitelist(org.bukkit.Statistic... whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInUsedStatisticsWhitelist(org.bukkit.Material... whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInMinedStatisticsWhitelist(org.bukkit.Material... whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInPickedUpStatisticsWhitelist(org.bukkit.Material... whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInGlobalStatisticsWhitelist(Collection<org.bukkit.Statistic> whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInUsedStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInMinedStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withTheseInPickedUpStatisticsWhitelist(Collection<org.bukkit.Material> whitelisted)
whitelisted
- The whitelist.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutGlobalStatisticsWhitelist()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutUsedStatisticsWhitelist()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutMinedStatisticsWhitelist()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutPickedUpStatisticsWhitelist()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseStatistics(org.bukkit.Statistic... highlighted)
Other statistics will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted statistics.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseUsedItems(org.bukkit.Material... highlighted)
Other items will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted items.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseMinedBlocks(org.bukkit.Material... highlighted)
Other blocks will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted blocks.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingThesePickedUpItems(org.bukkit.Material... highlighted)
Other items will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted items.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseStatistics(Collection<org.bukkit.Statistic> highlighted)
Other statistics will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted statistics.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseUsedItems(Collection<org.bukkit.Material> highlighted)
Other items will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted items.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingTheseMinedBlocks(Collection<org.bukkit.Material> highlighted)
Other blocks will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted blocks.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings highlightingThesePickedUpItems(Collection<org.bukkit.Material> highlighted)
Other items will still be accessible, but hidden by default. Because there is usually a lot of statistics collected, this can help make the report clearer.
highlighted
- The highlighted items.ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutHighlightingAnyGlobalStatistic()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutHighlightingAnyUsedItem()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutHighlightingAnyMinedBlock()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutHighlightingAnyPickedUpItem()
ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withGenerator(String name, String url)
name
- The generator's name.url
- The generator's URL (may be null
).ReportSettings
instance, for method chaining. Use done()
to end.public ReportSettings withoutGenerator()
ReportSettings
instance, for method chaining. Use done()
to end.public Report done()
Report
instance these settings are linked to, to come
back to it without breaking the methods chaining.public Set<org.bukkit.Statistic> getPlayersStatisticsWhitelist()
public Set<org.bukkit.Statistic> getPlayersStatisticsHighlight()
public Set<org.bukkit.Material> getPlayersUsedStatisticsWhitelist()
public Set<org.bukkit.Material> getPlayersUsedStatisticsHighlight()
public Set<org.bukkit.Material> getPlayersMinedStatisticsWhitelist()
public Set<org.bukkit.Material> getPlayersMinedStatisticsHighlight()
public Set<org.bukkit.Material> getPlayersPickedUpStatisticsWhitelist()
public Set<org.bukkit.Material> getPlayersPickedUpStatisticsHighlight()
public com.google.gson.JsonObject toJSON()
Copyright © 2021. All rights reserved.