aericioarchive / pcebookshop Goto Github PK
View Code? Open in Web Editor NEWBook Shop for PiggyCustomEnchants.
License: GNU General Public License v3.0
Book Shop for PiggyCustomEnchants.
License: GNU General Public License v3.0
When I add porkified for example in config.yml in excluded enchants I still get it from /bs.
I dont know if is my fault, but I tried to regenerate the config.yml file but the issue is still happening.
when you buy a book you can all go up to level 3
Is it possible to have the name of the Enchant on a given book appear when it's placed in an item frame? If so how would I accomplish this?
Currently it simply displays "Enchanted Book".
I think it would be much better to display the name of the enchantment, to allow players to display or make it easier to sort their books.
Thank you for your time.
$warpmenu->getInventory();
$inventory->setItem(0,Item::get(340, 1, 1)->setCustomName("§r§bCommon Enchantment Book")->setLore(["§r§cCost: 1000 XP"]));;
$inventory->setItem(1,Item::get(340, 2, 1)->setCustomName("§r§eUncommon Enchantment Book")->setLore(["§r§cCost: 2000 XP"]));;
$inventory->setItem(2,Item::get(340, 3, 1)->setCustomName("§r§6Rare Enchantment Book")->setLore(["§r§cCost: 3000 XP"]));;
$inventory->setItem(3,Item::get(340, 4, 1)->setCustomName("§r§cMythic Enchantment Book")->setLore(["§r§cCost: 4000 XP"]));;
$inventory->setItem(4,Item::get(340, 5, 1)->setCustomName("§r§3Special Enchantment Book")->setLore(["§r§cCost: 5000 XP"]));;
$warpmenu->send($sender);
break;
}
return true;
}
public function handleWarpMenu(Player $player, Item $itemClicked, Item $itemClickedWith, SlotChangeAction $action): bool{
//COMMON
$cost = 1000;
if($itemClicked->getId() === Item::BOOK and $itemClicked->getDamage() === 1) {
$level = $player->getLevel();
$player->getLevel()->addSound(new AnvilBreakSound($player));
if ($player->getCurrentTotalXp() < $cost ) {
$player->sendMessage(TextFormat::RED . "You do not have enough EXP to buy Common Book");
If I set the ‘currency’ to XP and set the price to 1 will it be 1 level or 1 XP
allow buying of multiple books at once
05.04 07:51:19 [Server] CRITICAL Error: "Class 'DaPigGuy\libPiggyEconomy\libPiggyEconomy' not found" (EXCEPTION) in "plugins/PCEBookShop-master/src/Aericio/PCEBookShop/PCEBookShop" at line 44
05.04 07:51:19 [Server] CRITICAL #0 pmsrc/src/pocketmine/plugin/PluginBase(116): Aericio\PCEBookShop\PCEBookShop->onEnable()
05.04 07:51:19 [Server] CRITICAL #1 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
05.04 07:51:19 [Server] CRITICAL #2 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object Aericio\PCEBookShop\PCEBookShop)
05.04 07:51:19 [Server] CRITICAL #3 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object Aericio\PCEBookShop\PCEBookShop)
05.04 07:51:19 [Server] CRITICAL #4 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1)
05.04 07:51:19 [Server] CRITICAL #5 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /, string[56] /plugins/)
05.04 07:51:19 [Server] CRITICAL #6 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
05.04 07:51:19 [Server] CRITICAL #7 pmsrc(11): require(string[103] phar:///PocketMine-MP.phar/src/po)
05.04 07:51:19 [Server] INFO Disabling PCEBookShop v1.0.3
how can i make pcebookshop of books at lvl 3 and not at maximum lvl is 5
[13:08:48] [Server thread/CRITICAL]: Error: "Class 'DaPigGuy\libPiggyEconomy\libPiggyEconomy' not found" (EXCEPTION) in "plugins/PCEBookShop_dev-1.phar/src/Aericio/PCEBookShop/PCEBookShop" at line 35
[13:08:48] [Server thread/DEBUG]: #0 src/pocketmine/plugin/PluginBase(115): Aericio\PCEBookShop\PCEBookShop->onEnable()
[13:08:48] [Server thread/DEBUG]: #1 src/pocketmine/plugin/PluginManager(541): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
[13:08:48] [Server thread/DEBUG]: #2 src/pocketmine/Server(1782): pocketmine\plugin\PluginManager->enablePlugin(object Aericio\PCEBookShop\PCEBookShop)
[13:08:48] [Server thread/DEBUG]: #3 src/pocketmine/Server(1768): pocketmine\Server->enablePlugin(object Aericio\PCEBookShop\PCEBookShop)
[13:08:48] [Server thread/DEBUG]: #4 src/pocketmine/Server(1581): pocketmine\Server->enablePlugins(integer 1)
[13:08:48] [Server thread/DEBUG]: #5 src/pocketmine/PocketMine(274): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[13:08:48] [Server thread/DEBUG]: #6 src/pocketmine/PocketMine(297): pocketmine\server()
[13:08:48] [Server thread/DEBUG]: #7 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[13:08:48] [Server thread/INFO]: Disabling PCEBookShop v1.0.0
add /bookspin (type) (player) that gives you a book spin without needing to buy it. - good item for crates
add a way to add CEs to tool or armor by opening a chest and combining the book and tool/armor together
$book->setLore([“This is poison,
This is Line two
This is Line Three
“]);
If u want to add desc u need make a complex way
Just set all the book CE and Level one by one
Add a Admin/OP command /givebook >>ce<< >>level<< to give your self books, This would also be good to give books as an item inside of server crates (using the command)
05.04 06:37:44 [Server] CRITICAL Error: "Undefined class constant 'RARITY_NAMES'" (EXCEPTION) in "plugins/FUCKINGCESHOPBOOKSHITCRACKAIDS/src/Aericio/PCEBookShop/commands/BookShopCommand" at line 71
05.04 06:37:44 [Server] CRITICAL #0 plugins/FUCKINGCESHOPBOOKSHITCRACKAIDS/src/Aericio/PCEBookShop/commands/BookShopCommand(28): Aericio\PCEBookShop\commands\BookShopCommand->sendShopForm(object koth\KothPlayer)
05.04 06:37:44 [Server] CRITICAL #1 plugins/FUCKINGCESHOPBOOKSHITCRACKAIDS/src/Aericio/PCEBookShop/libs/CortexPE/Commando/BaseCommand(124): Aericio\PCEBookShop\commands\BookShopCommand->onRun(object koth\KothPlayer, string[2] bs, array[0])
05.04 06:37:44 [Server] CRITICAL #2 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Aericio\PCEBookShop\libs\CortexPE\Commando\BaseCommand->execute(object koth\KothPlayer, string[2] bs, array[0])
pls add
Success Rate and Destroy rate for books
A chance to get on the items
Add another item to increase this chance
If Destory has a better chance, it warns once and breaks the item a second time
Please do this for both custom enchnat and Enchants
I have more ideas to share with you in Discord
Let people disable certain enchantments in config :)
.
currently, when u set the xp provider the cost values still show as dollar amounts?
so a enchant book that would cost 20 xp lists as $20
I feel like its should say like "20 xp" or "20 lvls" or something, i legit thought i accidentally wrote the wrong economy provider in the config lol
also after buying a book i feel like it should redirect u back to the starting menu that way the player doesnt have to run the command multiple times if they want to buy multiple books
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.