This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,6 +1,6 @@
config:
# Set this option to true if your using ANY supported economy system
useiConomy: false
useiConomy: true
# Cost per ticket
cost: 5
# If you aren't using an economy system, which item is used for currency
@@ -5,7 +5,6 @@
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.regex.Matcher;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@@ -9,15 +9,12 @@
public class PlayerJoinListener implements Listener
{

final private Lottery plugin;
final private LotteryConfig lConfig;
final private LotteryGame lGame;

public PlayerJoinListener(final Lottery plugin)
{
this.plugin = plugin;
lGame = plugin.getLotteryGame();
lConfig = plugin.getLotteryConfig();
plugin.getLotteryConfig();
}

@EventHandler(priority = EventPriority.MONITOR)
@@ -24,9 +24,9 @@ public PluginListener(final Lottery plugin)
@EventHandler(priority = EventPriority.MONITOR)
public void onPluginDisable(final PluginDisableEvent event)
{
if (this.Methods != null && Methods.hasMethod())
if (this.Methods != null && net.erbros.lottery.register.payment.Methods.hasMethod())
{
final boolean check = Methods.checkDisabled(event.getPlugin());
final boolean check = net.erbros.lottery.register.payment.Methods.checkDisabled(event.getPlugin());

if (check)
{
@@ -39,11 +39,11 @@ public void onPluginDisable(final PluginDisableEvent event)
@EventHandler(priority = EventPriority.MONITOR)
public void onPluginEnable(final PluginEnableEvent event)
{
if (!Methods.hasMethod())
if (!net.erbros.lottery.register.payment.Methods.hasMethod())
{
if (Methods.setMethod(Bukkit.getPluginManager()))
if (net.erbros.lottery.register.payment.Methods.setMethod(Bukkit.getPluginManager()))
{
this.plugin.setMethod(Methods.getMethod());
this.plugin.setMethod(net.erbros.lottery.register.payment.Methods.getMethod());
System.out.println(
"[Lottery] Payment method found (" + this.plugin.getMethod().getName() + " version: " + this.plugin.getMethod().getVersion() + ")");
}
@@ -46,14 +46,7 @@
*/
private static void _init()
{
addMethod("iConomy", new net.erbros.lottery.register.payment.methods.iCo6());
addMethod("iConomy", new net.erbros.lottery.register.payment.methods.iCo5());
addMethod("iConomy", new net.erbros.lottery.register.payment.methods.iCo4());
addMethod("BOSEconomy", new net.erbros.lottery.register.payment.methods.BOSE6());
addMethod("BOSEconomy", new net.erbros.lottery.register.payment.methods.BOSE7());
addMethod("Essentials", new net.erbros.lottery.register.payment.methods.EE17());
addMethod("Currency", new net.erbros.lottery.register.payment.methods.MCUR());
Dependencies.add("MultiCurrency");
addMethod("Vault", new net.erbros.lottery.register.payment.methods.VaultEco());
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -1,9 +1,7 @@
name: Lottery
main: net.erbros.lottery.Lottery
version: 0.9.4
authors:
- Erbros
- KHobbits
version: 0.9.5
authors: [Erbros, KHobbits, Omnivion]
website: www.erbros.net
commands:
lottery: