mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-15 23:25:16 +01: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()) {
|
||||
DataPoint town = liteData.get("TOW-TOWN");
|
||||
plData.setTown((town != null) ? town.data() : "Not in a town");
|
||||
plData.setFriends(liteData.get("TOW-FRIENDS").data());
|
||||
plData.setPlotPerms(liteData.get("TOW-PLOT PERMS").data());
|
||||
plData.setPlotOptions(liteData.get("TOW-PLOT OPTIONS").data());
|
||||
DataPoint friends = liteData.get("TOW-FRIENDS");
|
||||
plData.setFriends((town != null) ? friends.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()) {
|
||||
DataPoint faction = liteData.get("FAC-FACTION");
|
||||
|
Loading…
Reference in New Issue
Block a user