daykoala / windowy Goto Github PK
View Code? Open in Web Editor NEWA Fake Inventory Generator For PocketMine-MP (PMMP)
License: GNU Lesser General Public License v2.1
A Fake Inventory Generator For PocketMine-MP (PMMP)
License: GNU Lesser General Public License v2.1
When you set an item with transaction, in certain circustances the callback isn't called, a code example:
$back = ItemFactory::getInstance()->get(ItemIds::BARRIER);
$back->setCustomName("§4§c Back ");
$inventory->setItem(22, $back, function (WindowTransaction $action) {
// Kit::get() -> Kit (PluginBase)
Kit::get()
->getLogger()
->info("Item clicked!");
$action->cancel();
$inventory = $action->getInventory();
$inventory->clearAll();
// public static function showKitTypes(Window &$window): void
self::showKitTypes($inventory);
});
But, clicking the item don't show anything on console and the cancel action doesn't work
vc tem whatsapp?
Hi! im here again, im used your plugin because it's a very good plugin, but when im try to set an item lore, the item callback doesn't work anymore, this is my code:
public static function showKitTypes(CustomWindow &$inventory): void
{
$basic = ItemFactory::getInstance()->get(ItemIds::GRASS);
$basic->setCustomName("§r§8 - Default kits");
$basic->setLore(array("", "§7Click here to view all", "§7default kits on the server", ""));
$vips = ItemFactory::getInstance()->get(ItemIds::CHEST);
$vips->setCustomName("§r§5 - Kits VIP");
$vips->setLore(array("", "§7Click here to view all", "§7vip kits on the server", ""));
$inventory->setItem(15, $vips, function (WindowTransaction $action) {
$action->cancel();
$w = $action->getInventory();
$w->clearAll();
// public static function showKits(Player $player, CustomWindow &$inventory, int $type): void
self::showKits($action->getPlayer(), $w, Kit::TYPE_VIP);
});
$inventory->setItem(11, $basic, function (WindowTransaction $action) {
$action->cancel();
$w = $action->getInventory();
$w->clearAll();
// public static function showKits(Player $player, CustomWindow &$inventory, int $type): void
self::showKits($action->getPlayer(), $w, Kit::TYPE_BASIC);
});
}
I really enjoy your plugin, but this is bad and im using \n
on the item name to make a lore
Extra information:
Device: Samsung Galaxy a30
PocketMine-MP Version: 4.2.1
PHP Version: 8.0
Running on: localhost:19132
update to 5.3.1 please
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.