- * Registered to the plugin by OnTimeHook - *
- * Gives Total Referral Integer as value. - * - * @author Rsl1122 - * @see OnTimeHook - * @since 3.1.0 - */ -public class OntimeRefer extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeRefer() { - super("OnTime", "refer", AnalysisType.LONG_TOTAL, AnalysisType.LONG_AVG); - super.setAnalysisOnly(false); - super.setIcon("commenting-o"); - super.setPrefix("Referrals All Time: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.TOTALREFER); - if (referTotal == -1) { - return parseContainer(modifierPrefix, "No Referrals."); - } - return parseContainer(modifierPrefix, Long.toString(referTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.TOTALREFER); - if (referTotal == -1) { - return -1L; - } - return referTotal; - } - -} diff --git a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferMonth.java b/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferMonth.java deleted file mode 100644 index 3e7a507a1..000000000 --- a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferMonth.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.djrapitops.pluginbridge.plan.ontime; - -import main.java.com.djrapitops.plan.data.additional.AnalysisType; -import main.java.com.djrapitops.plan.data.additional.PluginData; -import me.edge209.OnTime.OnTimeAPI; - -import java.io.Serializable; -import java.util.UUID; - -/** - * PluginData class for Ontime-plugin. - * - * Registered to the plugin by OnTimeHook - * - * Gives Months Referral Integer as value. - * - * @author Rsl1122 - * @since 3.1.0 - * @see OnTimeHook - */ -public class OntimeReferMonth extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeReferMonth() { - super("OnTime", "refer_30d", AnalysisType.LONG_TOTAL); - super.setAnalysisOnly(false); - super.setIcon("commenting-o"); - super.setPrefix("Referrals Last 30d: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.MONTHREFER); - if (referTotal == -1) { - return parseContainer(modifierPrefix, "No Referrals."); - } - return parseContainer(modifierPrefix, Long.toString(referTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.MONTHREFER); - if (referTotal == -1) { - return -1L; - } - return referTotal; - } - -} diff --git a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferWeek.java b/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferWeek.java deleted file mode 100644 index ea577462a..000000000 --- a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeReferWeek.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.djrapitops.pluginbridge.plan.ontime; - -import main.java.com.djrapitops.plan.data.additional.AnalysisType; -import main.java.com.djrapitops.plan.data.additional.PluginData; -import me.edge209.OnTime.OnTimeAPI; - -import java.io.Serializable; -import java.util.UUID; - -/** - * PluginData class for Ontime-plugin. - * - * Registered to the plugin by OnTimeHook - * - * Gives Week's Referral Integer as value. - * - * @author Rsl1122 - * @since 3.1.0 - * @see OnTimeHook - */ -public class OntimeReferWeek extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeReferWeek() { - super("OnTime", "refer_7d", AnalysisType.LONG_TOTAL); - super.setAnalysisOnly(false); - super.setIcon("commenting-o"); - super.setPrefix("Referrals Last 7d: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.WEEKREFER); - if (referTotal == -1) { - return parseContainer(modifierPrefix, "No Referrals."); - } - return parseContainer(modifierPrefix, Long.toString(referTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long referTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.WEEKREFER); - if (referTotal == -1) { - return -1L; - } - return referTotal; - } - -} diff --git a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotes.java b/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotes.java deleted file mode 100644 index 3f29a1620..000000000 --- a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotes.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.djrapitops.pluginbridge.plan.ontime; - -import main.java.com.djrapitops.plan.data.additional.AnalysisType; -import main.java.com.djrapitops.plan.data.additional.PluginData; -import me.edge209.OnTime.OnTimeAPI; - -import java.io.Serializable; -import java.util.UUID; - -/** - * PluginData class for Ontime-plugin. - * - * Registered to the plugin by OnTimeHook - * - * Gives Total Votes Integer as value. - * - * @author Rsl1122 - * @since 3.1.0 - * @see OnTimeHook - */ -public class OntimeVotes extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeVotes() { - super("OnTime", "votes", AnalysisType.LONG_TOTAL, AnalysisType.LONG_AVG); - super.setAnalysisOnly(false); - super.setIcon("check"); - super.setPrefix("Votes All Time: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.TOTALVOTE); - if (votesTotal == -1) { - return parseContainer(modifierPrefix, "No votes."); - } - return parseContainer(modifierPrefix, Long.toString(votesTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.TOTALVOTE); - if (votesTotal == -1) { - return -1L; - } - return votesTotal; - } - -} diff --git a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesMonth.java b/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesMonth.java deleted file mode 100644 index 130fdcc17..000000000 --- a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesMonth.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.djrapitops.pluginbridge.plan.ontime; - -import main.java.com.djrapitops.plan.data.additional.AnalysisType; -import main.java.com.djrapitops.plan.data.additional.PluginData; -import me.edge209.OnTime.OnTimeAPI; - -import java.io.Serializable; -import java.util.UUID; - -/** - * PluginData class for Ontime-plugin. - * - * Registered to the plugin by OnTimeHook - * - * Gives Month's Votes Integer as value. - * - * @author Rsl1122 - * @since 3.1.0 - * @see OnTimeHook - */ -public class OntimeVotesMonth extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeVotesMonth() { - super("OnTime", "votes_30d", AnalysisType.LONG_TOTAL); - super.setAnalysisOnly(false); - super.setIcon("check"); - super.setPrefix("Votes Last 30d: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.MONTHVOTE); - if (votesTotal == -1) { - return parseContainer(modifierPrefix, "No votes."); - } - return parseContainer(modifierPrefix, Long.toString(votesTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.MONTHVOTE); - if (votesTotal == -1) { - return -1L; - } - return votesTotal; - } - -} diff --git a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesWeek.java b/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesWeek.java deleted file mode 100644 index 88d96654d..000000000 --- a/PlanPluginBridge/src/main/java/com/djrapitops/pluginbridge/plan/ontime/OntimeVotesWeek.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.djrapitops.pluginbridge.plan.ontime; - -import main.java.com.djrapitops.plan.data.additional.AnalysisType; -import main.java.com.djrapitops.plan.data.additional.PluginData; -import me.edge209.OnTime.OnTimeAPI; - -import java.io.Serializable; -import java.util.UUID; - -/** - * PluginData class for Ontime-plugin. - * - * Registered to the plugin by OnTimeHook - * - * Gives Week's Votes Integer as value. - * - * @author Rsl1122 - * @since 3.1.0 - * @see OnTimeHook - */ -public class OntimeVotesWeek extends PluginData { - - /** - * Class Constructor, sets the parameters of the PluginData object. - */ - public OntimeVotesWeek() { - super("OnTime", "votes_7d", AnalysisType.LONG_TOTAL); - super.setAnalysisOnly(false); - super.setIcon("check"); - super.setPrefix("Votes Last 7d: "); - } - - @Override - public String getHtmlReplaceValue(String modifierPrefix, UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.WEEKVOTE); - if (votesTotal == -1) { - return parseContainer(modifierPrefix, "No votes."); - } - return parseContainer(modifierPrefix, Long.toString(votesTotal)); - } - - @Override - public Serializable getValue(UUID uuid) { - String name = getNameOf(uuid); - long votesTotal = OnTimeAPI.getPlayerTimeData(name, OnTimeAPI.data.WEEKVOTE); - if (votesTotal == -1) { - return -1L; - } - return votesTotal; - } - -}