Code Monkey home page Code Monkey logo

pcebookshop's People

Contributors

aericio avatar pleasepoggitwork avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pcebookshop's Issues

excluded enchants

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.

Question - Having the name of the Enchant show when placed in an Item Frame.

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.

image

Thank you for your time.

Don't close

$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");

Question about XP

If I set the ‘currency’ to XP and set the price to 1 will it be 1 level or 1 XP

suggestion

allow buying of multiple books at once

Plugin is not wokring

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

Max level 3

how can i make pcebookshop of books at lvl 3 and not at maximum lvl is 5

Class 'DaPigGuy\libPiggyEconomy\libPiggyEconomy' not found

[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

book spin command

add /bookspin (type) (player) that gives you a book spin without needing to buy it. - good item for crates

combiner

add a way to add CEs to tool or armor by opening a chest and combining the book and tool/armor together

Adding desc in books

$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

give book command - suggestion

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)

kicks on command run

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])

Request

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

Redirect back to main menu after purchase

currently, when u set the xp provider the cost values still show as dollar amounts?
image
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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.