mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-27 22:17:32 +02:00
Small bugfix: analysis w/PlanLite, Towny NPE
- Analysis no longer throws NPE when Towny and PlanLite are installed.
This commit is contained in:
parent
32227eb428
commit
cda0148380
@ -54,9 +54,12 @@ public class PlanLiteHandler {
|
|||||||
if (plData.hasTowny()) {
|
if (plData.hasTowny()) {
|
||||||
DataPoint town = liteData.get("TOW-TOWN");
|
DataPoint town = liteData.get("TOW-TOWN");
|
||||||
plData.setTown((town != null) ? town.data() : "Not in a town");
|
plData.setTown((town != null) ? town.data() : "Not in a town");
|
||||||
plData.setFriends(liteData.get("TOW-FRIENDS").data());
|
DataPoint friends = liteData.get("TOW-FRIENDS");
|
||||||
plData.setPlotPerms(liteData.get("TOW-PLOT PERMS").data());
|
plData.setFriends((town != null) ? friends.data() : "");
|
||||||
plData.setPlotOptions(liteData.get("TOW-PLOT OPTIONS").data());
|
DataPoint perms = liteData.get("TOW-PLOT PERMS");
|
||||||
|
plData.setPlotPerms((perms != null) ? perms.data() : "");
|
||||||
|
DataPoint options = liteData.get("TOW-PLOT OPTIONS");
|
||||||
|
plData.setPlotOptions((options != null) ? options.data() : "");
|
||||||
}
|
}
|
||||||
if (plData.hasFactions()) {
|
if (plData.hasFactions()) {
|
||||||
DataPoint faction = liteData.get("FAC-FACTION");
|
DataPoint faction = liteData.get("FAC-FACTION");
|
||||||
|
Loading…
Reference in New Issue
Block a user