Mineplex2018-withcommit/Plugins/Mineplex.Votifier/src/mineplex/votifier/VotifierManager.java

34 lines
843 B
Java
Raw Normal View History

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;
/**
* 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();
System.out.println("New Vote: " + vote.getUsername());
}
}