-3

Thanks for your help! The plugin finally works. Indeed, p was null, so I changed that and it worked

abbob1
  • 123
  • 1
  • 1
  • 10

1 Answers1

1

When you initialise MenuInv you get a NullPointerException.

See these 2 lines:

Player p;
PlayerInventory pi = p.getInventory();

The 2nd one throws the NullPointerExxception because p is null.

NickJ
  • 8,978
  • 8
  • 49
  • 71