Coder Social home page Coder Social logo

brokiem / simplenpc Goto Github PK

View Code? Open in Web Editor NEW
55.0 3.0 23.0 2.64 MB

✨An Ultimate NPC plugin for PocketMine-MP!

License: GNU Lesser General Public License v3.0

PHP 100.00%
pmmp npc slapper pocketmine-plugins npc-plugin pmmp-plugin simple-npc snpc ultimate-npc-plugin brokiem

simplenpc's Introduction

SimpleNPC


An Ultimate NPC plugin made by brokiem for PocketMine-MP.
License Star Discord Support me on Patreon Poggit

✨ Features

  • Right click to interact! ✔
  • NPC can walk! ✔
  • Set NPC skin with URL! ✔
  • Register your own entity! ✔
  • NPC with Cape supported! ✔
  • NPC with Custom Geometry! ✔
  • Edit NPC with UI/Form! ✔
  • NPC without nametag ✔
  • Custom NPC Size/Scale ✔
  • Live updates without restart ✔
  • Cooldown for commands ✔
  • NPC can look at players ✔
  • Lightweight & Open Source ❤

💬 Commands

For more command info, please look directly at /snpc help
or you can use /snpc ui

Command Description Permission Default
/snpc SimpleNPC command list none true
/snpc ui Manage npc with UI/Form simplenpc.ui op
/snpc spawn Spawn an npc simplenpc.spawn op
/snpc edit Edit the npc simplenpc.edit op
/snpc id Get the npc id simplenpc.id op
/snpc reload Reload plugin config simplenpc.reload op
/snpc remove Remove the npc simplenpc.remove op
/snpc list See the npc list simplenpc.list op

📝 Todo List

  • Add custom walking path

❔ Issues

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

🖥 Developers

If you want to register your own entity, take a look at this plugin
You can also customize NPCs geometry by customizing the NPC skins

👑 Donation

Patreon - https://www.patreon.com/join/brokiem
Saweria - https://saweria.co/brokiem

🖼 Images

simplenpc's People

Contributors

brokiem avatar mrholler 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

simplenpc's Issues

Rotate Setting and Adding Scale

Is your feature request related to a problem? Please describe.
Since some of users are using a Custom 3d Skin/Geometry for there NPC, I would like to suggest that Rotate setting can edit through the Edit Setting of an NPC, it can Enable Rotate or Not.

For the Scale, I would like to suggest this into Edit setting. the Scale is more like the Size of the NPC just like the Slapper did.

Describe the solution you'd like
For example if I spawned an NPC using a Bulletin Board skin then I would like to set the rotation into false because I would set it as an Object then if I spawned an NPC using a normal skin then the rotation will be state as true.

For the scale, I would like to set my NPC into 1.5

Describe alternatives you've considered
none

Additional context
as the title says

NG

<My friend when I add my personal commands it doesn't work can you help me please.> Thank 🌹

Show Name cause Crash

Describe the bug
USing Show Name Tag from UI cause crash

To Reproduce
Steps to reproduce the behavior:

  1. Spanw NPC Human
  2. /snpc edit 443
  3. Click show Name Tag
  4. See error

Expected behavior
Not to crash

Screenshots
N/A

SimpleNPC plugin information

  • Version: [2.1.0]
  • Server api: [1.16.220 -- 3.19.1+dev]

Additional context

21:09:40 Server|CRITICAL > TypeError: "Argument 1 passed to pocketmine\entity\Entity::setNameTag() must be of the type string, bool given, called in C:\Users\Benjamin\Documents\PMMP-Rapto\plugins\SimpleNPC-master\src\brokiem\snpc\manager\form\FormManager.php on line 139" (EXCEPTION) in "pmsrc/src/pocketmine/entity/Entity" at line 764
21:09:40 Server|CRITICAL > #0 plugins/SimpleNPC-master/src/brokiem/snpc/manager/form/FormManager(139): pocketmine\entity\Entity->setNameTag(boolean )
21:09:40 Server|CRITICAL > #1 C:/Users/Benjamin/Documents/PMMP-Rapto/virions/EasyUI-master/src/EasyUI/utils/SubmitListener(37): brokiem\snpc\manager\form\FormManager::brokiem\snpc\manager\form\{closure}(object pocketmine\Player)
21:09:40 Server|CRITICAL > #2 C:/Users/Benjamin/Documents/PMMP-Rapto/virions/EasyUI-master/src/EasyUI/utils/Submittable(21): EasyUI\element\Button->executeSubmitListener(object pocketmine\Player)
21:09:40 Server|CRITICAL > #3 C:/Users/Benjamin/Documents/PMMP-Rapto/virions/EasyUI-master/src/EasyUI/variant/SimpleForm(64): EasyUI\element\Button->notifySubmit(object pocketmine\Player)
21:09:40 Server|CRITICAL > #4 pmsrc/src/pocketmine/Player(3905): EasyUI\variant\SimpleForm->handleResponse(object pocketmine\Player, integer 6)
21:09:40 Server|CRITICAL > #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(307): pocketmine\Player->onFormSubmit(integer 6, integer 6)
21:09:40 Server|CRITICAL > #6 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
21:09:40 Server|CRITICAL > #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(126): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
21:09:40 Server|CRITICAL > #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(133): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
21:09:40 Server|CRITICAL > #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(126): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
21:09:40 Server|CRITICAL > #10 pmsrc/src/pocketmine/Player(3553): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
21:09:40 Server|CRITICAL > #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
21:09:40 Server|CRITICAL > #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 64163, object raklib\protocol\EncapsulatedPacket, integer 0)
21:09:40 Server|CRITICAL > #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
21:09:40 Server|CRITICAL > #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
21:09:40 Server|CRITICAL > #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
21:09:40 Server|CRITICAL > #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
21:09:40 Server|CRITICAL > #17 pmsrc/src/pocketmine/Server(2265): pocketmine\snooze\SleeperHandler->sleepUntil(double 1620072580.8985)
21:09:40 Server|CRITICAL > #18 pmsrc/src/pocketmine/Server(2105): pocketmine\Server->tickProcessor()
21:09:40 Server|CRITICAL > #19 pmsrc/src/pocketmine/Server(1689): pocketmine\Server->start()
21:09:40 Server|CRITICAL > #20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[39] C:\Users\Benjamin\Documents\PMMP-Rapto\, string[47] C:\Users\Benjamin\Documents\PMMP-Rapto\plugins\)
21:09:40 Server|CRITICAL > #21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
21:09:40 Server|CRITICAL > #22 pmsrc(11): require(string[86] phar://C:/Users/Benjamin/Documents/PMMP-Rapto/Altay.phar/src/pocketmine/PocketMi)

Can't edit NPCs

Hey,
I can't edit any NPCs because the UI is not opening.

Command: /snpc edit <id>
Output: null

Version: 1.0.1-beta

Missing EasyUI Virion

It's a pretty simple fix, you just need to add the EasyUI folder to src, but without it people aren't able to do /snpc edit without getting an error.

EasyUI.zip

suggest

can you do something for set the skin to the skin of a player of the server ?

Command

How to make player tap command like /lobby

Topographic cooldown + error

Describe the bug
The deactivated cooldown does not work, it is still active (also change the name from "Coldown" to "Cooldown")

To Reproduce
Steps to reproduce the behavior:

  1. Set cooldown to 0
  2. restart the server
  3. as soon as you enter, touch an npc and you have to wait 2 seconds
  4. See error

Expected behavior
That when you touch it, it will run without delay

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

SimpleNPC plugin information

  • Version: Dev ver 157
  • Server api: 3.19.0

Add Enderdragon

add Enderdragon NPC. I am not a Coder so I dont code plugins but that will be cool if you add enderdragon and wither and other bosses in the game.

Commands

The commands doesn't work i tried all versions

Suggestion

Migrate and Combining Smaccer to SimpleNPC, Some of the features will be the same as Smaccer and add Emote NPC.

crash of the server

the server crash and say me that: RuntimeException: "Tag with name "Walk" not found and no valid default value given" (EXCEPTION) in "pmsrc/vendor/pocketmine/nbt/src/tag/CompoundTag" at line 176

[BUG:] "Internal Server Error" on NPC Hit. Please update SNPC for the changes of PMMP 3.19.x

Here's the error:

[12:33:52] [Server thread/CRITICAL]: Error: "Undefined property: pocketmine\network\mcpe\protocol\InventoryTransactionPacket::$transactionType" (EXCEPTION) in "pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket" at line 195
[12:33:52] [Server thread/CRITICAL]: #0 plugins/PureEntitiesX (2).phar/src/revivalpmmp/pureentities/event/EventListener(75): pocketmine\network\mcpe\protocol\DataPacket->__get(string[15] transactionType)
[12:33:52] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): revivalpmmp\pureentities\event\EventListener->dataPacketReceiveEvent(object pocketmine\event\server\DataPacketReceiveEvent)
[12:33:52] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object revivalpmmp\pureentities\event\EventListener, object pocketmine\event\server\DataPacketReceiveEvent)
[12:33:52] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent)
[12:33:52] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(108): pocketmine\event\Event->call()
[12:33:52] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[12:33:52] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[12:33:52] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[12:33:52] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[12:33:52] [Server thread/CRITICAL]: #9 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 92.195.61.73 54084, object raklib\protocol\EncapsulatedPacket, integer 0)
[12:33:52] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[12:33:52] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[12:33:52] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[12:33:52] [Server thread/CRITICAL]: #13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[12:33:52] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617885232.1133)
[12:33:52] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[12:33:52] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[12:33:52] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[15] /home/BetterFW/, string[23] /home/BetterFW/plugins/)
[12:33:52] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[12:33:52] [Server thread/CRITICAL]: #19 pmsrc(11): require(string[67] phar:///home/BetterFW/pocketmine.phar/src/pocketmine/PocketMine.php)

Doubt

Hello how can i set models to npc and where to put the model of the npc?

NPCs clear themselves

Describe the bug
NPCs are erased automatically, but it only happens in a part of the map.

To Reproduce
Steps to reproduce the behavior:

  1. I don't know how to reproduce it since it is random and only occurs in one area of the map

Expected behavior
That they will not be erased, because it does not make any sense, they have never done it before

Screenshots
image
It is those 3 npcs that disappear

SimpleNPC plugin information

  • Version: Dev288
  • Server api: 3.22.1

Additional context
This has never happened to me, neither with simplenpc before nor with Slappers, it is very rare.
All other NPCs work properly and are not eliminated

CustomHuman must have a valid skin set (error with 1.16.220)

I used the version of this plugin from master as of the time making this report, stack is below.
To reproduce: /snpc spawn Human "test"

[18:11:12] [Server thread/CRITICAL]: #0 plugins/SimpleNPC-master/src/brokiem/snpc/entity/CustomHuman(16): pocketmine\entity\Human->__construct(object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
[18:11:12] [Server thread/CRITICAL]: #1 plugins/SimpleNPC-master/src/brokiem/snpc/manager/NPCManager(83): brokiem\snpc\entity\CustomHuman->__construct(object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
[18:11:12] [Server thread/CRITICAL]: #2 plugins/SimpleNPC-master/src/brokiem/snpc/manager/NPCManager(60): brokiem\snpc\manager\NPCManager::createEntity(string[10] human_snpc, object pocketmine\level\Level, object pocketmine\nbt\tag\CompoundTag)
[18:11:12] [Server thread/CRITICAL]: #3 plugins/SimpleNPC-master/src/brokiem/snpc/commands/Commands(206): brokiem\snpc\manager\NPCManager::createNPC(string[10] human_snpc, object pocketmine\Player, string[4] test)
[18:11:12] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/command/SimpleCommandMap(248): brokiem\snpc\commands\Commands->execute(object pocketmine\Player, string[4] snpc, array[3])
[18:11:12] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[23] snpc spawn Human "test")
[18:11:12] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Player(2351): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[23] snpc spawn Human "test")
[18:11:12] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[24] /snpc spawn Human "test")
[18:11:12] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[18:11:12] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[18:11:12] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[18:11:12] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[18:11:12] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[18:11:12] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[18:11:12] [Server thread/CRITICAL]: #14 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 60529, object raklib\protocol\EncapsulatedPacket, integer 0)
[18:11:12] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[18:11:12] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[18:11:12] [Server thread/CRITICAL]: #17 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[18:11:12] [Server thread/CRITICAL]: #18 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[18:11:12] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617923472.9187)
[18:11:12] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[18:11:12] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[18:11:12] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[23] G:\Backups\Test Server\, string[31] G:\Backups\Test Server\plugins\)
[18:11:12] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[18:11:12] [Server thread/CRITICAL]: #24 pmsrc(11): require(string[78] phar://G:/Backups/Test Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```

commands on behalf of a player

how would i make it open a kits menue like /kit when the player punches the npc. i use /rca but how would i make it on behalf of the player? since there is no @p like vanilla minecraft.

registerEntity issue

Describe the bug
SimpleNPC :: registerEntity doesn't work correctly even in your example (CustomEntity).

To Reproduce
Steps to reproduce the behavior:

  1. Download and install SimpleNPC (phar).
  2. Download and install CustomEntity.
  3. Try to spawn 'customnpc:villager' or 'customnpc:myhuman'
  4. In the first case, we get an error:
    [14:11:42] [Server thread/CRITICAL]: InvalidStateException: "Entity brokiem\customentity\CustomVillager is not registered" (EXCEPTION) in "pmsrc/src/pocketmine/entity/Entity" at line 872 [14:11:42] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/entity/Entity(879): pocketmine\entity\Entity->getSaveId() [14:11:42] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/level/format/io/region/Anvil(71): pocketmine\entity\Entity->saveNBT() [14:11:42] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/level/format/io/region/McRegion(416): pocketmine\level\format\io\region\Anvil->nbtSerialize(object pocketmine\level\format\Chunk) [14:11:42] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/level/format/io/BaseLevelProvider(186): pocketmine\level\format\io\region\McRegion->writeChunk(object pocketmine\level\format\Chunk) [14:11:42] [Server thread/CRITICAL]: #4 plugins/SimpleNPC.phar/src/brokiem/snpc/manager/NPCManager(287): pocketmine\level\format\io\BaseLevelProvider->saveChunk(object pocketmine\level\format\Chunk) [14:11:42] [Server thread/CRITICAL]: #5 plugins/SimpleNPC.phar/src/brokiem/snpc/manager/NPCManager(252): brokiem\snpc\manager\NPCManager->saveChunkNPC(object brokiem\customentity\CustomVillager) [14:11:42] [Server thread/CRITICAL]: #6 plugins/SimpleNPC.phar/src/brokiem/snpc/commands/Commands(115): brokiem\snpc\manager\NPCManager->spawnNPC(string[13] villager_snpc, object pocketmine\Player, string[2] Hi) [14:11:42] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/command/SimpleCommandMap(248): brokiem\snpc\commands\Commands->execute(object pocketmine\Player, string[4] snpc, array[3]) [14:11:42] [Server thread/CRITICAL]: #8 plugins/SimpleNPC.phar/src/brokiem/snpc/manager/form/FormManager(108): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[21] snpc add villager Hi ) [14:11:42] [Server thread/CRITICAL]: #9 plugins/SimpleNPC.phar/src/brokiem/snpc/libs/EasyUI/variant/CustomForm(60): brokiem\snpc\manager\form\FormManager->brokiem\snpc\manager\form\{closure}(object pocketmine\Player, object brokiem\snpc\libs\EasyUI\utils\FormResponse) [14:11:42] [Server thread/CRITICAL]: #10 plugins/SimpleNPC.phar/src/brokiem/snpc/libs/EasyUI/variant/CustomForm(80): brokiem\snpc\libs\EasyUI\variant\CustomForm->executeSubmitListener(object pocketmine\Player, object brokiem\snpc\libs\EasyUI\utils\FormResponse) [14:11:42] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/Player(3666): brokiem\snpc\libs\EasyUI\variant\CustomForm->handleResponse(object pocketmine\Player, array[2]) [14:11:42] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 5, array[2]) [14:11:42] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [14:11:42] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [14:11:42] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket) [14:11:42] [Server thread/CRITICAL]: #16 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [14:11:42] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Player(3313): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [14:11:42] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [14:11:42] [Server thread/CRITICAL]: #19 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 64028, object raklib\protocol\EncapsulatedPacket, integer 0) [14:11:42] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [14:11:42] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [14:11:42] [Server thread/CRITICAL]: #22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}() [14:11:42] [Server thread/CRITICAL]: #23 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [14:11:42] [Server thread/CRITICAL]: #24 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1623759102.8541) [14:11:42] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() [14:11:42] [Server thread/CRITICAL]: #26 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() [14:11:42] [Server thread/CRITICAL]: #27 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[32] C:\Users\zyware\Desktop\release\, string[40] C:\Users\zyware\Desktop\release\plugins\) [14:11:42] [Server thread/CRITICAL]: #28 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() [14:11:42] [Server thread/CRITICAL]: #29 pmsrc(11): require(string[80] phar://D:/PocketMine-MP/release/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
  5. And when customnpc spawn, nothing happens, writes that it is not registered.

Expected behavior
Working registration entity.

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

SimpleNPC plugin information

  • Version: 2.1.5
  • Server api: 3.21.0

Perhaps this was meant here: #44

Setting Walk do nothing

Describe the bug
Use Walk option do nothing

Expected behavior
Should 'move' ?

Screenshots
N/A

SimpleNPC plugin information

  • Version: [2.1.0]
  • Server api: [1.16.220 -- 3.19.1+dev]

Additional context
N/A

NPCs Turns back to their original size after changing their sizes

Describe the bug
I changed a blaze NPC's Size to 20 because I needed a big blaze, but whenever I rejoin the server, the blaze turns back to his original size

To Reproduce
Steps to reproduce the behavior:

  1. Go to your Server
  2. Type the command /snpc ui
  3. Select Spawn NPC
  4. Select Blaze NPC
  5. Type its name and all settings whatever and Spawn it
  6. Now type /snpc ui again
  7. press edit NPC
  8. Type the ID of the Blaze NPC and press Submit
  9. Now Click on Edit Size Button
  10. Now change the size to 20
  11. Now left the server
  12. or Restart it
  13. Join again
  14. You will see the blaze is back to its original size

Expected behavior
I expected the Blaze will stay in 20 Size forever

SimpleNPC plugin information

  • Version: Latest
  • Server api: 3.19.2

Additional context
Please Fix this, I love this plugin. It made my life easier and You are active too.

Implementation of NPCDialog

Is your feature request related to a problem? Please describe.
Could it be integrated NPCDialog

Describe the solution you'd like
Be able to set in config file of the NPC, one or more dialog (if more than one, take first, second, third, and back to first).
If possible, have custom actions on button (Null / Command ...).
If possible, support more than one button.

Describe alternatives you've considered
No alternative

Additional context
Picture taken from NPCDialog :
image

Add Player Count in Nametags

add world and server player count in the nametags of the NPC. And let us count combined worlds in a single playercount

removecmd is not a valid element identifier (error when adding command)

To reproduce: Create an NPC, run the command to edit the npc with the UI, add a command, put any command in

[07:46:48] [Server thread/CRITICAL]: #0 plugins/SimpleNPC-master/src/EasyUI/utils/FormResponse(40): EasyUI\utils\FormResponse->getElement(string[9] removecmd, string[20] EasyUI\element\Input)
[07:46:48] [Server thread/CRITICAL]: #1 plugins/SimpleNPC-master/src/brokiem/snpc/commands/Commands(350): EasyUI\utils\FormResponse->getInputSubmittedText(string[9] removecmd)
[07:46:48] [Server thread/CRITICAL]: #2 plugins/SimpleNPC-master/src/EasyUI/variant/CustomForm(65): brokiem\snpc\commands\Commands->brokiem\snpc\commands\{closure}(object pocketmine\Player, object EasyUI\utils\FormResponse)
[07:46:48] [Server thread/CRITICAL]: #3 plugins/SimpleNPC-master/src/EasyUI/variant/CustomForm(85): EasyUI\variant\CustomForm->executeSubmitListener(object pocketmine\Player, object EasyUI\utils\FormResponse)
[07:46:48] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(3664): EasyUI\variant\CustomForm->handleResponse(object pocketmine\Player, array[1])
[07:46:48] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(259): pocketmine\Player->onFormSubmit(integer 1, array[1])
[07:46:48] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[07:46:48] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[07:46:48] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[07:46:48] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[07:46:48] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3311): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[07:46:48] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[07:46:48] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 50088, object raklib\protocol\EncapsulatedPacket, integer 0)
[07:46:48] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[07:46:48] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[07:46:48] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[07:46:48] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[07:46:48] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617972408.7709)
[07:46:48] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[07:46:48] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[07:46:48] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[23] G:\Backups\Test Server\, string[31] G:\Backups\Test Server\plugins\)
[07:46:48] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[07:46:48] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[78] phar://G:/Backups/Test Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)```

Skin Glitch

Describe the bug
NPC's Skin not working?

To Reproduce
Steps to reproduce the behavior:

  1. Spawn a First Human NPC, it will works perfectly fine.
  2. Spawn another one, it's skin will be Glitched

Expected behavior
Skin Works?

Screenshots
image

SimpleNPC plugin information

  • Version: 2.1.6
  • Server api: 3.220

Additional context
the npc's id is kinda high for some reasn

Add PocketMine 4.0.0 support

Is your feature request related to a problem? Please describe.
nope
Describe the solution you'd like
nope

Describe alternatives you've considered
I didnt

Additional context
Add PocketMine 4 support which is gonna release soon

Snpc runs commands as server, not player

I can't give command on snpc Because snpc runs the command as a server.

Example:
I want to enter the command /shop to snpc. And when I try it can't. It turned out that after I looked at the console server.

Please make snpc a player

Warp

How do you make a world warp and what warp plugin @brokiem

[Suggestion] Animated Names

Is your feature request related to a problem? Please describe.
Nope

Describe the solution you'd like
Add it where names are animated! The name of the NPC changes every couple of seconds(configurable in the config)!

Describe alternatives you've considered
None

Additional context
nope

Animated NPCs

Is your feature request related to a problem? Please describe.
Nope

Describe the solution you'd like
Its not a problem

Describe alternatives you've considered
Animated NPCs

Additional context
Add like an Animated NPCs where a NPC will have bends and like a statue but animated (not talking about Emotes)

Suggestions

Can u add that when we want to edit npc so we don't have to enter id, just we have to do /snpc edit then we have to tap on npc to edit. :)

Support for GameEventPlugin

I think it would be nice if this plugin had support for SimpleNPC, so events could be done.

If you think it's not worth it, close the ticket

mob set as npc

I use the plugin pureentitiesx for generate mob but the simplenpc plugin set all my mob as a npc so i can't hit them and they don't moove. (sorry for my bad english)

The NPCs when updating the version disappear

The other day when the new update came out, I updated Pocketmine and then I saw all the plugins that I had to update, then all the NPCs had disappeared, when I put the new simpleNPC update it did not correct the NPCs and they do not appear, I only have the .dat of them

Is there any way to make them appear again? Because step of putting 1 x 1 with your skins, your name, your command etc etc

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.