Skip to content

Releases: Muqsit/InvMenu

v4.7.3

21 Aug 06:10

Choose a tag to compare

Fixed more cases of inventory close listener being called during pending dispatches

v4.7.2

12 Aug 08:41

Choose a tag to compare

Fixed a bug where the inventory close listener would be called despite an unsuccessful send()

v4.7.1

28 Jun 18:23

Choose a tag to compare

InvMenu v4.7 implements a new delay strategy that reduces excess wait times.

  • Removed deprecated InvMenu::getType(), use InvMenu::$type instead.
  • Removed deprecated PlayerSession::getCurrent(), use PlayerSession::$current instead.
  • Removed deprecated PlayerSession::getNetwork(), use PlayerSession::$network instead.
  • Removed deprecated InvMenuTransactionResult::isCancelled(), use InvMenuTransactionResult::$cancelled instead.
  • Removed deprecated InvMenuTransactionResult::getPostTransactionCallback(), use InvMenuTransactionResult::$post_transaction_callback instead.
  • Removed deprecated PlayerManager::getNetworkHandlerRegistry(), use PlayerManager::$network_handler_registry instead.
  • Removed internal InvMenu::sendInventory(), use InvMenu::send() instead.
  • Removed internal PlayerSession::setCurrentWindow(), use InvMenu::send() instead.
  • Removed internal PlayerSession::removeCurrentWindow(), use Player::removeCurrentWindow() instead.
  • Removed PlayerNetwork::getGraphicWaitDuration(), PlayerNetwork::setGraphicWaitDuration(), PlayerNetwork::getPending(), PlayerNetwork::dropPendingOfType(), PlayerNetwork::onBeforeSendMenu() - there is no replacement for these methods as InvMenu v4.7 replaces the conventional delay strategy with a newer logic.

v4.6.5

14 Aug 07:12

Choose a tag to compare

  • Added getter methods to retrieve menu listener and menu inventory close listener
    Added InvMenu::getListener(), InvMenu::getInventoryCloseListener().
    This allows developers to retrieve the current listener, extend its behavior, and then re-set it.
    This provides more flexibility in chaining or extending listener functionalities without losing the original behavior.
    $listener = $menu->getInventoryCloseListener();
    $menu->setInventoryCloseListener(function(Player $player, Inventory $inventory) use($listener) : void{
    	$listener($player, $inventory);
    	// place additional inventory close checks here
    });

v.4.6.4

17 Jul 06:36

Choose a tag to compare

  • Added support for Bedrock Edition v1.19.20: Fixed menus not opening after updating to Bedrock Edition v1.19.20 (#216, #218, #219, #223) (c597754, 5489dd3)
  • Dropped support for Bedrock Edition < v1.19.20

v4.6.1

01 Jun 11:22

Choose a tag to compare

  • Added support for PocketMine-MP v5.0.0
  • Dropped support for PocketMine-MP v4.x.x

v4.5.1

15 Apr 18:16

Choose a tag to compare

  • Fixed a bug that caused a double chest inventory to be sent to players when a single chest menu was opened at the position of an existing double chest (#207, thanks @OrBuilder)