mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-20 11:42:50 +02:00
Fixed fort-awesome icons #630
This commit is contained in:
parent
35c82d1e99
commit
4b6953c403
|
@ -13,6 +13,7 @@ import com.djrapitops.plan.data.store.keys.AnalysisKeys;
|
||||||
import com.djrapitops.plan.data.store.mutators.PlayersMutator;
|
import com.djrapitops.plan.data.store.mutators.PlayersMutator;
|
||||||
import com.djrapitops.plan.utilities.html.Html;
|
import com.djrapitops.plan.utilities.html.Html;
|
||||||
import com.djrapitops.plan.utilities.html.icon.Color;
|
import com.djrapitops.plan.utilities.html.icon.Color;
|
||||||
|
import com.djrapitops.plan.utilities.html.icon.Family;
|
||||||
import com.djrapitops.plan.utilities.html.icon.Icon;
|
import com.djrapitops.plan.utilities.html.icon.Icon;
|
||||||
import org.kingdoms.constants.kingdom.OfflineKingdom;
|
import org.kingdoms.constants.kingdom.OfflineKingdom;
|
||||||
import org.kingdoms.constants.player.OfflineKingdomPlayer;
|
import org.kingdoms.constants.player.OfflineKingdomPlayer;
|
||||||
|
@ -38,13 +39,13 @@ public class KingdomsData extends PluginData {
|
||||||
String kingdomName = kingdomPlayer.getKingdomName();
|
String kingdomName = kingdomPlayer.getKingdomName();
|
||||||
|
|
||||||
if (kingdomName == null) {
|
if (kingdomName == null) {
|
||||||
inspectContainer.addValue(getWithIcon("Kingdom", Icon.called("fort-awesome").of(Color.AMBER)), "No Kingdom");
|
inspectContainer.addValue(getWithIcon("Kingdom", Icon.called("fort-awesome").of(Family.BRAND).of(Color.AMBER)), "No Kingdom");
|
||||||
} else {
|
} else {
|
||||||
OfflineKingdom kingdom = GameManagement.getKingdomManager().getOfflineKingdom(kingdomName);
|
OfflineKingdom kingdom = GameManagement.getKingdomManager().getOfflineKingdom(kingdomName);
|
||||||
if (kingdom != null) {
|
if (kingdom != null) {
|
||||||
String king = kingdom.getKingName();
|
String king = kingdom.getKingName();
|
||||||
String link = Html.LINK.parse(PlanAPI.getInstance().getPlayerInspectPageLink(king), king);
|
String link = Html.LINK.parse(PlanAPI.getInstance().getPlayerInspectPageLink(king), king);
|
||||||
inspectContainer.addValue(getWithIcon("Kingdom", Icon.called("fort-awesome").of(Color.AMBER)), kingdomName);
|
inspectContainer.addValue(getWithIcon("Kingdom", Icon.called("fort-awesome").of(Family.BRAND).of(Color.AMBER)), kingdomName);
|
||||||
inspectContainer.addValue(getWithIcon("King", Icon.called("chess-king").of(Color.AMBER)), link);
|
inspectContainer.addValue(getWithIcon("King", Icon.called("chess-king").of(Color.AMBER)), link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +57,7 @@ public class KingdomsData extends PluginData {
|
||||||
public AnalysisContainer getServerData(Collection<UUID> collection, AnalysisContainer analysisContainer) {
|
public AnalysisContainer getServerData(Collection<UUID> collection, AnalysisContainer analysisContainer) {
|
||||||
Map<String, OfflineKingdom> kingdoms = GameManagement.getKingdomManager().getKingdomList();
|
Map<String, OfflineKingdom> kingdoms = GameManagement.getKingdomManager().getKingdomList();
|
||||||
|
|
||||||
analysisContainer.addValue(getWithIcon("Number of Kingdoms", Icon.called("fort-awesome").of(Color.AMBER)), kingdoms.size());
|
analysisContainer.addValue(getWithIcon("Number of Kingdoms", Icon.called("fort-awesome").of(Family.BRAND).of(Color.AMBER)), kingdoms.size());
|
||||||
|
|
||||||
if (!kingdoms.isEmpty()) {
|
if (!kingdoms.isEmpty()) {
|
||||||
KingdomsAccordion kingdomsAccordion = new KingdomsAccordion(
|
KingdomsAccordion kingdomsAccordion = new KingdomsAccordion(
|
||||||
|
@ -80,7 +81,7 @@ public class KingdomsData extends PluginData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
analysisContainer.addPlayerTableValues(getWithIcon("Kingdom", Icon.called("fort-awesome")), userKingDoms);
|
analysisContainer.addPlayerTableValues(getWithIcon("Kingdom", Icon.called("fort-awesome").of(Family.BRAND)), userKingDoms);
|
||||||
}
|
}
|
||||||
|
|
||||||
return analysisContainer;
|
return analysisContainer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user