-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pm5 Change #228
Comments
The code doesn't seem to interact with InvMenu's API, but |
@Muqsit what is use
|
What is the functionality you're trying to achieve? |
It's send player to MainGUI When Player Click On Item 262. |
NOW CAN YOU TELL ME HOW I DO THIS WHEN PLAYER CLICK ON STONE THAN SEND THE PLAYER TO MainGUI ?? |
@Muqsit reply |
Item ID and meta were removed in PM5. Use if($item->getTypeId() === ItemTypeIds::fromBlockTypeId(VanillaBlocks::STONE()->getTypeId())){
// send player to main gui
} I'd suggest familiarizing with PocketMine API 5 changes that were officially documented. It includes a broader range of changes: https://github.com/pmmp/PocketMine-MP/blob/stable/changelogs/5.0.md#pocketmineitem Alternatively, if the 'back button' is always present in slot 48, you can simply check for slot instead: |
What Is Visible For |
What do you mean by Visible? |
@Muqsit variable* |
$item would be $transaction->getItemClicked() for your case. |
Ok |
@Muqsit It's Work ??
|
@Muqsit reply |
I unfortunately cannot help further without knowing the intricate details of your goal. You'll have to work on that by yourself. Look around the wiki for further documentation and examples: |
What's Change For This In Pm5?
$visitingPlayer = Server::getInstance()->getPlayerExact(str_replace(["§r §b", " §r"], ["", ""], $itemOut->getCustomName()));
$inv->setItem(21, ItemFactory::getInstance()->get(0, 0, 0));
The text was updated successfully, but these errors were encountered: