Search in sources :

Example 6 with RewardBuilder

use of com.bencodez.advancedcore.api.rewards.RewardBuilder in project VotingPlugin by Ben12345rocks.

the class VoteSite method giveRewards.

public void giveRewards(VotingPluginUser user, boolean online, boolean bungee) {
    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);
    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);
}
Also used : RewardBuilder(com.bencodez.advancedcore.api.rewards.RewardBuilder)

Aggregations

RewardBuilder (com.bencodez.advancedcore.api.rewards.RewardBuilder)6 PlayerSpecialRewardEvent (com.bencodez.votingplugin.events.PlayerSpecialRewardEvent)3 VoteSite (com.bencodez.votingplugin.objects.VoteSite)2 VotingPluginUser (com.bencodez.votingplugin.user.VotingPluginUser)2 Player (org.bukkit.entity.Player)2 BInventory (com.bencodez.advancedcore.api.inventory.BInventory)1 ClickEvent (com.bencodez.advancedcore.api.inventory.BInventory.ClickEvent)1 BInventoryButton (com.bencodez.advancedcore.api.inventory.BInventoryButton)1 UpdatingBInventoryButton (com.bencodez.advancedcore.api.inventory.UpdatingBInventoryButton)1 ItemBuilder (com.bencodez.advancedcore.api.item.ItemBuilder)1 EncryptionHandler (com.bencodez.advancedcore.api.misc.encryption.EncryptionHandler)1 PluginMessageHandler (com.bencodez.advancedcore.bungeeapi.pluginmessage.PluginMessageHandler)1 ClientHandler (com.bencodez.advancedcore.bungeeapi.sockets.ClientHandler)1 SocketHandler (com.bencodez.advancedcore.bungeeapi.sockets.SocketHandler)1 SocketReceiver (com.bencodez.advancedcore.bungeeapi.sockets.SocketReceiver)1 BungeeMessageData (com.bencodez.votingplugin.bungee.BungeeMessageData)1 File (java.io.File)1 ArrayList (java.util.ArrayList)1