(InventoryCloseEvent e)
| 500 | } |
| 501 | |
| 502 | @EventHandler |
| 503 | public void onClose(InventoryCloseEvent e) { |
| 504 | if (e.getInventory().equals(inventory) && destroyOnClose) { |
| 505 | if (e.getViewers().size() <= 1) { |
| 506 | destroy((Player) e.getPlayer()); |
| 507 | } |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | } |
nothing calls this directly
no test coverage detected