mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 14:58:26 +02:00
Added World Name to GameMode slices (#491)
This commit is contained in:
parent
a6bd3eadcc
commit
98d55b2ff2
@ -1,14 +1,25 @@
|
||||
function worldPie(id, worldSeries, gmSeries) {
|
||||
Highcharts.chart(id, {
|
||||
var defaultTitle = '';
|
||||
var defaultSubtitle = 'Click the slices to view used GameMode';
|
||||
|
||||
var chart = Highcharts.chart(id, {
|
||||
chart: {
|
||||
plotBackgroundColor: null,
|
||||
plotBorderWidth: null,
|
||||
plotShadow: false,
|
||||
type: 'pie'
|
||||
type: 'pie',
|
||||
events: {
|
||||
drilldown: function (e) {
|
||||
chart.setTitle({text: '' + e.point.name}, {text: ''});
|
||||
},
|
||||
drillup: function (e) {
|
||||
chart.setTitle({text: defaultTitle}, {text: defaultSubtitle});
|
||||
}
|
||||
}
|
||||
},
|
||||
title: {text: ''},
|
||||
title: {text: defaultTitle},
|
||||
subtitle: {
|
||||
text: 'Click the slices to view used GameMode'
|
||||
text: defaultSubtitle
|
||||
},
|
||||
plotOptions: {
|
||||
pie: {
|
||||
|
@ -53,7 +53,7 @@ public class LiteBansData extends PluginData implements BanData {
|
||||
List<LiteBansDBObj> warns = db.getWarnings(uuid);
|
||||
List<LiteBansDBObj> kicks = db.getKicks(uuid);
|
||||
if (bans.isEmpty() && mutes.isEmpty() && warns.isEmpty() && kicks.isEmpty()) {
|
||||
table.addRow("Not Banned/Muted/Warned/Kicked");
|
||||
table.addRow("None");
|
||||
} else {
|
||||
for (LiteBansDBObj ban : bans) {
|
||||
long expiry = ban.getExpiry();
|
||||
|
Loading…
Reference in New Issue
Block a user