2015-08-06 07:45:39 +02:00
|
|
|
package mineplex.votifier;
|
|
|
|
|
|
|
|
import org.bukkit.event.EventHandler;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
|
|
|
|
import com.vexsoftware.votifier.model.Vote;
|
|
|
|
import com.vexsoftware.votifier.model.VotifierEvent;
|
|
|
|
import mineplex.core.MiniPlugin;
|
|
|
|
import mineplex.core.account.CoreClientManager;
|
|
|
|
import mineplex.core.donation.DonationManager;
|
2015-08-06 13:45:47 +02:00
|
|
|
import mineplex.core.votifier.RedisVotifierCommand;
|
2015-08-06 07:45:39 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by shaun on 15-08-05.
|
|
|
|
*/
|
|
|
|
public class VotifierManager extends MiniPlugin
|
|
|
|
{
|
|
|
|
public VotifierManager(JavaPlugin plugin, CoreClientManager clientManager, DonationManager donationManager)
|
|
|
|
{
|
|
|
|
super("Votifier", plugin);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
public void handleVote(VotifierEvent event)
|
|
|
|
{
|
|
|
|
Vote vote = event.getVote();
|
|
|
|
|
2015-08-06 13:45:47 +02:00
|
|
|
RedisVotifierCommand command = new RedisVotifierCommand();
|
|
|
|
|
2015-08-06 07:45:39 +02:00
|
|
|
System.out.println("New Vote: " + vote.getUsername());
|
|
|
|
}
|
|
|
|
}
|