Im getting a null pointer on my plugin error:http://dpaste.com/04BYKNJ code: http://dpaste.com/0K8BBH7
You have Player player = null. Thats your issue because null pointer means somethings null. Change to Player p = (Player) sender;
coby9 Or instead of initializing your Inventory object "i" outside of the if statement, do so after you assign a value to player that isn't null.
Okay so heres my code,How would I make it say "you have that already" if they have the book when they type the command