Added Sponsor signs!
This commit is contained in:
		@@ -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]);
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -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{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user