Added Sponsor signs!
This commit is contained in:
parent
d8ae176cd8
commit
ec10159a2b
Binary file not shown.
Binary file not shown.
@ -32,6 +32,9 @@ public class Signs implements Listener {
|
|||||||
p.performCommand("ha leave");
|
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 ID = Integer.parseInt(args[1]);
|
||||||
int Amount = Integer.parseInt(args[2]);
|
int Amount = Integer.parseInt(args[2]);
|
||||||
ItemStack sponsoritem = new ItemStack(ID, Amount);
|
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)){
|
if(!plugin.Playing.contains(target)){
|
||||||
p.sendMessage(ChatColor.RED + "That person isn't playing!");
|
p.sendMessage(ChatColor.RED + "That person isn't playing!");
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user