Added Sponsor signs!

This commit is contained in:
Travis Eggett 2012-05-28 22:01:39 -06:00
parent d8ae176cd8
commit ec10159a2b
4 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,9 @@ public class Signs implements Listener {
p.performCommand("ha leave");
}
}
if(lines[0].equalsIgnoreCase("[Sponsor]")){
p.performCommand("sponsor" + " " + lines[1] + " " + lines[2] + " " + lines[3]);
}
}
}
}

View File

@ -38,7 +38,7 @@ public class SponsorCommands implements CommandExecutor {
int ID = Integer.parseInt(args[1]);
int Amount = Integer.parseInt(args[2]);
ItemStack sponsoritem = new ItemStack(ID, Amount);
if(p.getInventory().contains(plugin.Cost)){
if(p.getInventory().contains(plugin.config.getInt("Sponsor_Cost.ID"), plugin.config.getInt("Sponsor_Cost.Amount")*Amount)){
if(!plugin.Playing.contains(target)){
p.sendMessage(ChatColor.RED + "That person isn't playing!");
}else{