Fixed PluginBridge

This commit is contained in:
Rsl1122 2017-11-05 20:05:44 +02:00
parent e129ac0990
commit 4d28474711
9 changed files with 93 additions and 12 deletions

View File

@ -70,7 +70,7 @@
<dependency> <dependency>
<groupId>com.djrapitops</groupId> <groupId>com.djrapitops</groupId>
<artifactId>PlanPluginBridge</artifactId> <artifactId>PlanPluginBridge</artifactId>
<version>4.0.3</version> <version>4.0.5</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<!-- Testing --> <!-- Testing -->

View File

@ -0,0 +1,81 @@
var gaugeOptions = {
chart: {
type: 'solidgauge'
},
title: null,
pane: {
center: ['50%', '85%'],
size: '140%',
startAngle: -90,
endAngle: 90,
background: {
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || '#EEE',
innerRadius: '60%',
outerRadius: '100%',
shape: 'arc'
}
},
tooltip: {
enabled: false
},
// the value axis
yAxis: {
stops: [
[0.1, '#DF5353'], // red
[0.5, '#DDDF0D'], // yellow
[0.9, '#55BF3B'] // green
],
lineWidth: 0,
minorTickInterval: null,
tickAmount: 2,
title: {
y: -70
},
labels: {
y: 16
}
},
plotOptions: {
solidgauge: {
dataLabels: {
y: 5,
borderWidth: 0,
useHTML: true
}
}
}
};
var chartSpeed = Highcharts.chart('container-speed', Highcharts.merge(gaugeOptions, {
yAxis: {
min: 0,
max: 100,
title: {
text: 'Server Health'
},
visible: false
},
credits: {
enabled: false
},
series: [{
name: 'health',
data: [95.73],
dataLabels: {
formatter: function() {
return '<div style="text-align:center"><span style="font-size:25px;color:' +
((Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black') + '">'+(this.y).toFixed(2)+'</span><br/>' +
'<span style="font-size:12px;color:silver">Very Healthy</span></div>';
}
}
}]
}));

Binary file not shown.

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.djrapitops</groupId> <groupId>com.djrapitops</groupId>
<artifactId>PlanPluginBridge</artifactId> <artifactId>PlanPluginBridge</artifactId>
<version>4.0.3</version> <version>4.0.5</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<repositories> <repositories>
<repository> <repository>
@ -24,7 +24,7 @@
<dependency> <dependency>
<groupId>com.djrapitops</groupId> <groupId>com.djrapitops</groupId>
<artifactId>Plan</artifactId> <artifactId>Plan</artifactId>
<version>4.0.0</version> <version>4.0.5</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -1,5 +1,6 @@
package com.djrapitops.pluginbridge.plan; package com.djrapitops.pluginbridge.plan;
import com.djrapitops.plugin.api.utility.log.Log;
import com.djrapitops.pluginbridge.plan.advancedachievements.AdvancedAchievementsHook; import com.djrapitops.pluginbridge.plan.advancedachievements.AdvancedAchievementsHook;
import com.djrapitops.pluginbridge.plan.askyblock.ASkyBlockHook; import com.djrapitops.pluginbridge.plan.askyblock.ASkyBlockHook;
import com.djrapitops.pluginbridge.plan.essentials.EssentialsHook; import com.djrapitops.pluginbridge.plan.essentials.EssentialsHook;
@ -13,7 +14,6 @@ import com.djrapitops.pluginbridge.plan.superbvote.SuperbVoteHook;
import com.djrapitops.pluginbridge.plan.towny.TownyHook; import com.djrapitops.pluginbridge.plan.towny.TownyHook;
import com.djrapitops.pluginbridge.plan.vault.VaultHook; import com.djrapitops.pluginbridge.plan.vault.VaultHook;
import com.djrapitops.pluginbridge.plan.viaversion.ViaVersionHook; import com.djrapitops.pluginbridge.plan.viaversion.ViaVersionHook;
import main.java.com.djrapitops.plan.Log;
import main.java.com.djrapitops.plan.Settings; import main.java.com.djrapitops.plan.Settings;
import main.java.com.djrapitops.plan.data.additional.HookHandler; import main.java.com.djrapitops.plan.data.additional.HookHandler;

View File

@ -1,6 +1,6 @@
package com.djrapitops.pluginbridge.plan.griefprevention; package com.djrapitops.pluginbridge.plan.griefprevention;
import com.djrapitops.plugin.utilities.FormattingUtils; import com.djrapitops.plugin.utilities.FormatUtils;
import com.djrapitops.plugin.utilities.Verify; import com.djrapitops.plugin.utilities.Verify;
import main.java.com.djrapitops.plan.data.additional.PluginData; import main.java.com.djrapitops.plan.data.additional.PluginData;
import main.java.com.djrapitops.plan.utilities.html.Html; import main.java.com.djrapitops.plan.utilities.html.Html;
@ -52,7 +52,7 @@ public class GriefPreventionClaimTable extends PluginData {
.filter(Objects::nonNull) .filter(Objects::nonNull)
.filter(claim -> uuid.equals(claim.ownerID)) .filter(claim -> uuid.equals(claim.ownerID))
.forEach(claim -> { .forEach(claim -> {
String location = FormattingUtils.formatLocation(claim.getGreaterBoundaryCorner()); String location = FormatUtils.formatLocation(claim.getGreaterBoundaryCorner());
int area = claim.getArea(); int area = claim.getArea();
html.append(Html.TABLELINE_2.parse(location, area)); html.append(Html.TABLELINE_2.parse(location, area));
}); });

View File

@ -5,7 +5,8 @@
*/ */
package com.djrapitops.pluginbridge.plan.viaversion; package com.djrapitops.pluginbridge.plan.viaversion;
import main.java.com.djrapitops.plan.Log;
import com.djrapitops.plugin.api.utility.log.Log;
import main.java.com.djrapitops.plan.Plan; import main.java.com.djrapitops.plan.Plan;
import main.java.com.djrapitops.plan.database.databases.SQLDB; import main.java.com.djrapitops.plan.database.databases.SQLDB;
import main.java.com.djrapitops.plan.systems.processing.Processor; import main.java.com.djrapitops.plan.systems.processing.Processor;

View File

@ -1,7 +1,7 @@
package com.djrapitops.pluginbridge.plan.viaversion; package com.djrapitops.pluginbridge.plan.viaversion;
import com.djrapitops.plugin.api.utility.log.Log;
import com.djrapitops.pluginbridge.plan.Hook; import com.djrapitops.pluginbridge.plan.Hook;
import main.java.com.djrapitops.plan.Log;
import main.java.com.djrapitops.plan.Plan; import main.java.com.djrapitops.plan.Plan;
import main.java.com.djrapitops.plan.api.API; import main.java.com.djrapitops.plan.api.API;
import main.java.com.djrapitops.plan.api.exceptions.DBCreateTableException; import main.java.com.djrapitops.plan.api.exceptions.DBCreateTableException;

View File

@ -1,14 +1,13 @@
package com.djrapitops.pluginbridge.plan.viaversion; package com.djrapitops.pluginbridge.plan.viaversion;
import com.djrapitops.pluginbridge.plan.vault.*; import com.djrapitops.plugin.api.utility.log.Log;
import com.djrapitops.pluginbridge.plan.vault.VaultHook;
import main.java.com.djrapitops.plan.data.additional.PluginData;
import java.io.Serializable; import java.io.Serializable;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.UUID; import java.util.UUID;
import main.java.com.djrapitops.plan.Log;
import main.java.com.djrapitops.plan.data.additional.PluginData;
/** /**
* PluginData class for Vault-plugin. * PluginData class for Vault-plugin.
* *