Giter Club home page Giter Club logo

simplepets's Introduction

SimplePets


An Ultimate Pets plugin made by broki for PocketMine-MP.
License Star Discord Donate

โœจ Features

  • MySQL and SQLite database
  • Anti sql injection
  • Pets with inventory
  • Pets can be ridden
  • XUID data saving
  • Multi world support
  • Lightweight & Open Source โค

๐Ÿ’ฌ Commands

For more command info, please look directly at /spet help

Command Description Permission Default
/spet SimplePets command list none true
/spet petlist Show all pet list simplepets.petlist op
/spet spawn Spawning a pet simplepets.spawn op
/spet remove Removing a pet simplepets.remove op
/spet inv View pet inventory simplepets.inv true
/spet ride Ride a pet simplepets.ride true

๐Ÿ“ Todo List

  • UI/Form to manage pets
  • Renaming pets

โ” Issues

Did you find a bug or error when using this plugin? feel free to open the issues here

๐Ÿ‘‘ Donation

Paypal - https://www.paypal.me/brokiem
Saweria - https://saweria.co/brokiem

simplepets's People

Contributors

akmalfairuz avatar brokiem avatar bubbelwubbel avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simplepets's Issues

Pets purchase system

Is your feature request related to a problem? Please describe.
No its not

Describe the solution you'd like
You don't need a solution xd

Describe alternatives you've considered
There are no alternatives, it is simply a fr

Additional context
I would like to know if you could add a UI interface where people can buy their pets

That is, there is a configuration where you can put the money that each pet costs so that people can buy them

Pet Size

when typing a value for size what are you supposed to put?
If i put like 2 or 0.1 the size does not change

Stairseat crash

Describe the bug
If a player sits on a chair, it gives an internal server error to the player

To Reproduce
Steps to reproduce the behavior:

  1. Sit in any stair
  2. See internal server error

Expected behavior
That it did not make any internal server error

Screenshots
If applicable, add screenshots to help explain your problem.

SimplePets plugin information

  • Version: 1.0.1-beta
  • Server api: I don't know, it's the latest version of pocketmine and I have php 7.4

Additional context

[20:27:49] [Server thread/CRITICAL]: ErrorException: "Undefined index: MrBlasyMSK" (EXCEPTION) in "plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/manager/PetManager" at line 296
[20:27:49] [Server thread/CRITICAL]: #0 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/manager/PetManager(296): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[27] Undefined index: MrBlasyMSK, string[99] phar:///home/container/plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/man, integer 296, array[1])
[20:27:49] [Server thread/CRITICAL]: #1 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/EventListener(71): brokiem\simplepets\manager\PetManager->getRiddenPet(object JackMD\NameSpaceRemover\CustomPlayer)
[20:27:49] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): brokiem\simplepets\EventListener->onDataPacket(object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object brokiem\simplepets\EventListener, object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent)
[20:27:49] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\event\Event->call()
[20:27:49] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerInputPacket)
[20:27:49] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:27:49] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Player(3321): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:27:49] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:27:49] [Server thread/CRITICAL]: #10 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[16] xx.xx.xx.xxx, object raklib\protocol\EncapsulatedPacket, integer 0)
[20:27:49] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[20:27:49] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[20:27:49] [Server thread/CRITICAL]: #13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[20:27:49] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[20:27:49] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1628713669.1276)
[20:27:49] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[20:27:49] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[20:27:49] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[20:27:49] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[20:27:49] [Server thread/CRITICAL]: #20 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

[Suggestion] Inventories & Movement

โ€ข Inventories:

  • Give a pet an inventory by tapping them with a chest.
  • View a pet's inventory by tapping them with an empty hand.

โ€ข Movement:

  • Pets can be ridden by tapping them with a saddle.
  • Pets can sit on your head by tapping them while sneaking.

bug

it happened when I had a pet and I left the server
TypeError: "Argument 2 passed to brokiem\simplepets\manager\PetManager::removeActivePet() must be of the type string, int given, called in /test/server/plugins/Pets/src/brokiem/simplepets/EventListener.php on line 50" (EXCEPTION) in "plugins/Pets/src/brokiem/simplepets/manager/PetManager" at line 307
Add any other context about the problem here.

suggestion

delete this project
remove your github
star ComplexPets

I dont get the config and Mysql Settings in Plugin_data

Describe the bug
No explain it is a File Problem

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Upload plugin and got to plugin_data'
  2. Click on 'SimplePets and look i dont have settings for config and MySQL settings'
  3. See file missing i cant use the commands

upgrate

make it possible to stop the pet in one place

[Suggestion] Adding auto-teleportation after going to void

Is your feature request related to a problem? Please describe.
Pets working great, it's just that sometimes when playing in a floating island, riding a pet into the void will not follow you back. Only relogin can it be restored.

Describe the solution you'd like
Adding pet teleportation for falling into the void (Especially when a server has AntiVoid that send a player to the lobby)

Describe alternatives you've considered

Additional context

A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: SimplePets Error: Cannot schedule update on garbage entity brokiem\simplepets\pets\PandaPet File: pmsrc/src/entity/Entity Line: 994 Type: LogicException

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

SimplePets plugin information

  • Version: [e.g. 1.0.0]
  • Server api: [e.g. 4.0.1]

Additional context
Add any other context about the problem here.

[Suggestion] Add UI

  • Add UI so it's easier to manage pets.
  • Colorize the pet names
  • If possible add the name of the pet owner

Pet duplicated

The pet is duplicate when another player hit my pet. I can't /spet remove to remove the pet.

Mysterycrate crash with particles and world change with Pets

Describe the bug
If a player tries to teleport to another world and has a pet, the server will internal and restart

To Reproduce
Steps to reproduce the behavior:

  1. Add a pet to yourself
  2. Go to another world
  3. Crash

Expected behavior
That the pets endure the change of world and follow the player

Screenshots
If applicable, add screenshots to help explain your problem.

SimplePets plugin information

  • Version: 1.0.1-beta
  • Server api: I don't know, it's the latest version of pocketmine and I have php 7.4

Additional context

23:52:03] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\Server::pocketmine\{closure}() must be an instance of pocketmine\Player, instance of brokiem\simplepets\pets\CatPet given" (EXCEPTION) in "pmsrc/src/pocketmine/Server" at line 1723
[23:52:03] [Server thread/CRITICAL]: #0 (): pocketmine\Server->pocketmine\{closure}(object brokiem\simplepets\pets\CatPet)
[23:52:03] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/Server(1723): array_filter(array[1], object Closure)
[23:52:03] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/level/Level(538): pocketmine\Server->batchPackets(array[1], array[1], boolean )
[23:52:03] [Server thread/CRITICAL]: #3 plugins/MysteryCrate.phar/src/JackMD/MysteryCrate/EventListener(239): pocketmine\level\Level->addParticle(object pocketmine\level\particle\FloatingTextParticle, array[1])
[23:52:03] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): JackMD\MysteryCrate\EventListener->onLevelChange(object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object JackMD\MysteryCrate\EventListener, object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityLevelChangeEvent)
[23:52:03] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/entity/Entity(1904): pocketmine\event\Event->call()
[23:52:03] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/entity/Entity(1769): pocketmine\entity\Entity->switchLevel(object pocketmine\level\Level)
[23:52:03] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/entity/Entity(1794): pocketmine\entity\Entity->setPosition(object pocketmine\level\Position)
[23:52:03] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/entity/Entity(1885): pocketmine\entity\Entity->setPositionAndRotation(object pocketmine\level\Position, double 145.8123900474, double -1.5042436028662)
[23:52:03] [Server thread/CRITICAL]: #11 plugins/SimplePets_dev-79.phar/src/brokiem/simplepets/pets/base/BasePet(335): pocketmine\entity\Entity->teleport(object pocketmine\level\Position)
[23:52:03] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/entity/Entity(1393): brokiem\simplepets\pets\base\BasePet->entityBaseTick(integer 1)
[23:52:03] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/level/Level(854): pocketmine\entity\Entity->onUpdate(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 18940)
[23:52:03] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 18940, double 1628639523.1728)
[23:52:03] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
[23:52:03] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[23:52:03] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[23:52:03] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[23:52:03] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[23:52:03] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Suggestion

Can u add petLevel and petExperience ?.

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.