From 44130f6a5207d700d7a1cf787415ba16601a52a2 Mon Sep 17 00:00:00 2001 From: BenCodez Date: Mon, 23 Sep 2024 14:46:17 -0600 Subject: [PATCH] Run everysite reward before votesite reward --- .../src/com/bencodez/votingplugin/objects/VoteSite.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java b/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java index 061528296..b6ad6672c 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java @@ -202,15 +202,16 @@ public String getVoteURLJsonStrip() { } public void giveRewards(VotingPluginUser user, boolean online, boolean bungee) { - new RewardBuilder(plugin.getConfigVoteSites().getData(), plugin.getConfigVoteSites().getRewardsPath(key)) + new RewardBuilder(plugin.getConfigVoteSites().getData(), plugin.getConfigVoteSites().getEverySiteRewardPath()) .setOnline(online).withPlaceHolder("ServiceSite", getServiceSite()) .withPlaceHolder("SiteName", getDisplayName()).withPlaceHolder("VoteDelay", "" + getVoteDelay()) .withPlaceHolder("VoteURL", getVoteURL()).setServer(bungee).send(user); - new RewardBuilder(plugin.getConfigVoteSites().getData(), plugin.getConfigVoteSites().getEverySiteRewardPath()) + new RewardBuilder(plugin.getConfigVoteSites().getData(), plugin.getConfigVoteSites().getRewardsPath(key)) .setOnline(online).withPlaceHolder("ServiceSite", getServiceSite()) .withPlaceHolder("SiteName", getDisplayName()).withPlaceHolder("VoteDelay", "" + getVoteDelay()) .withPlaceHolder("VoteURL", getVoteURL()).setServer(bungee).send(user); + } public boolean hasRewards() {