mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-01 00:10:12 +01:00
f9fbf17fe6
- Changed format of all BukkitRunnables to be the same. - Added a delayed task for cache clearing if data is being saved. - Changed PlanLite packages from com.djrapitops.plan to com.djrapitops.planlite - Moved useful utilities to com.djrapitops.plan.utilities and removed rest - Location Handling (and saving) disabled for now because of inefficient saving to SQL. - Added more javadocs Fixed bugs: - Locations not saved when player moves (Fixed, but location handling will be disabled for now) Known Bugs: - Times don't update on inspect (Just need to call update if player is online, one line missing.) - ClassCastException on start-up when PlanLite is not installed. (Will fix with try catch tomorrow.)
27 lines
428 B
Java
27 lines
428 B
Java
|
|
package com.djrapitops.planlite.api;
|
|
|
|
public class DataPoint {
|
|
private String data;
|
|
private final DataType type;
|
|
|
|
public DataPoint(String data, DataType type) {
|
|
this.data = data;
|
|
this.type = type;
|
|
}
|
|
|
|
public String data() {
|
|
return data;
|
|
}
|
|
|
|
public void setData(String data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public DataType type() {
|
|
return type;
|
|
}
|
|
|
|
|
|
}
|