Giter VIP home page Giter VIP logo

sellall's Introduction

SellAll

Sell all items in your hand or all items in your inventory with the same type as in your hand It's really simple: just type /sell all if you want to send every block in your inventory that is of the same type as in your hand. type /sell hand if you just want to sell the stack if items in your hand. Do /sell inventory to sell all sellable items in your inventory!

If you want to add a group of items to sell at once, like /sell ores to sell all the ores in your inventory, you can do this by adding a new group in the config. You just have to list all the item IDs. The item names will work too but it's not recommended as they need to be exact.

The plugin will base the prices on what you put in config.yml. just add the id and then the price you want to sell it for. Example: 100: 10 If you changed the config while the server is running you can do /sell reload. If you don't have perms it will look like the subcommand doesn't exist.

The plugin will do the rest! Players need the sellall.command permission to use the /sell command.

from 1.3.0: You can also sell items with specific meta. For instance, if you want to sell lapis for $7 you need to add '351:4':7. The '' is very important!

sellall's People

Contributors

andreashgk avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sellall's Issues

Suggestions

Can you add /autosell when they break its automatically selling

type just /sell return in internal server error

should just type /sell return to help command of /sell hand/inv/all

ErrorException: "Undefined index: groups" (EXCEPTION) in "plugins/SellAll/src/AndreasHGK/SellAll/SellAll" at line 230
#0 plugins/SellAll/src/AndreasHGK/SellAll/SellAll(230): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined index: groups, string /home/boicraft/boi/plugins/SellAll/src/AndreasHGK/SellAll/SellAll.php, integer 230, array Array())
#1 plugins/SellAll/src/AndreasHGK/SellAll/SellAll(220): AndreasHGK\SellAll\SellAll->listArguments()
#2 src/pocketmine/command/PluginCommand(58): AndreasHGK\SellAll\SellAll->onCommand(JackMD\NameSpaceRemover\CustomPlayer object, pocketmine\command\PluginCommand object, string sell, array Array())
#3 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(JackMD\NameSpaceRemover\CustomPlayer object, string sell, array Array())
#4 src/pocketmine/Server(2011): pocketmine\command\SimpleCommandMap->dispatch(JackMD\NameSpaceRemover\CustomPlayer object, string sell)
#5 src/pocketmine/Player(2219): pocketmine\Server->dispatchCommand(JackMD\NameSpaceRemover\CustomPlayer object, string sell)
#6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string /sell)
#7 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
#9 src/pocketmine/network/mcpe/protocol/BatchPacket(119): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
#10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
#11 src/pocketmine/Player(3111): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
#12 src/pocketmine/network/mcpe/RakLibInterface(170): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
#13 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 36.76.176.22 43145, raklib\protocol\EncapsulatedPacket object, integer 0)
#14 src/pocketmine/network/mcpe/RakLibInterface(110): raklib\server\ServerHandler->handlePacket()
#15 src/pocketmine/network/mcpe/RakLibInterface(100): pocketmine\network\mcpe\RakLibInterface->process()
#16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
#17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#18 src/pocketmine/Server(2329): pocketmine\snooze\SleeperHandler->sleepUntil(double 1552726592.0652)
#19 src/pocketmine/Server(2187): pocketmine\Server->tickProcessor()
#20 src/pocketmine/Server(1766): pocketmine\Server->start()
#21 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/boicraft/boi/, string /home/boicraft/boi/plugins/)
#22 (1): require(string phar:///home/boicraft/boi/PocketMine-MP.phar/src/pocketmine/PocketMine.php
```)

Set Price for specific type/colour of blocks.

If I wanted to set a specific color of stained glass for example, to have a different price how would I set this in the config file.

From what I can tell we can't set for example

241:4 35 # Yellow Stained Glass $35
241:1 120 # Orange Stained Glass $120

It seems to only accept the first number of the ID. It'd be nice to have the flexibility to set different prices for blocks of the same type but different colors. This is not limited to the stained glass example and can apply to a variety of blocks that use a secondary number to identify the block.

The other advantage would be when someone went to use /sell all while they had the Yellow Stained Glass in hand.. rather then it selling all stained glass it'd sell just the stacks of that specific color.

/sell all

They issue broken only /sell all we cant sell item is something wrong with code $item = $sender->getInventory()->getItemInHand(); becuase is only hand on sell all commands

Help

I know this is unrelated but I'm looking for a plug-in developer that I can play to make me some plugins, please send me your discord.

Permission

/sell (default everyone)
/sell all (default for op)
/sell inventory (default for op)

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.