Has anyone created a form like NPC dialog https://github.com/andresbytes/NpcDialog if I may I want to see how the source for learning Thanks
You just sent us the source. What you might be looking for, is how to use the source, which again is shown in the link you've given us. Does this boil down to be a question of how to create plugins in general?
You can create a plugin like any other plugin in poggit. Read the README.MD on the github page on how to use it. EG: PHP: $form = new DialogForm("This is the dialog text"); $form->addButton(new Button("Hi", function(Player $player) { $player->sendMessage("Hi!!");}));$form->setCloseListener(function(Player $player) { $player->sendMessage("You closed the form!");});$form->pairWithEntity($entity);
sorry, I don't really understand the explanation, that's why I want to see the finished one in its entirety
I already know how to create a plugin, but I'm still confused about whether to use the command to spawn the entity? and what is the code
The code examples are provided in the README.md. If you never knew, You have to create your own code. Just like you create your own tea or sandwhich.