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