2015-08-06 07:45:39 +02:00
|
|
|
package mineplex.votifier;
|
|
|
|
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
|
|
|
|
import mineplex.core.account.CoreClientManager;
|
2015-08-06 13:45:47 +02:00
|
|
|
import mineplex.core.command.CommandCenter;
|
2015-08-06 07:45:39 +02:00
|
|
|
import mineplex.core.donation.DonationManager;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by shaun on 15-08-05.
|
|
|
|
*/
|
|
|
|
public class Votifier extends JavaPlugin
|
|
|
|
{
|
|
|
|
private String WEB_CONFIG = "webServer";
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onEnable()
|
|
|
|
{
|
|
|
|
getConfig().addDefault(WEB_CONFIG, "http://accounts.mineplex.com/");
|
|
|
|
getConfig().set(WEB_CONFIG, getConfig().getString(WEB_CONFIG));
|
|
|
|
saveConfig();
|
|
|
|
|
|
|
|
String webServerAddress = getConfig().getString(WEB_CONFIG);
|
|
|
|
|
2015-08-06 13:45:47 +02:00
|
|
|
CommandCenter.Initialize(this);
|
2015-08-06 07:45:39 +02:00
|
|
|
CoreClientManager clientManager = new CoreClientManager(this, webServerAddress);
|
|
|
|
DonationManager donationManager = new DonationManager(this, clientManager, webServerAddress);
|
|
|
|
|
|
|
|
|
|
|
|
VotifierManager vote = new VotifierManager(this, clientManager, donationManager);
|
|
|
|
}
|
|
|
|
}
|