1. How can I say / program that all mobs should die?
2. How can you get the number of certain mobs e.g. Skelet?
Learn Java and write your own plugin.
Your needs correspond to about 5 - 6 lines
I can java. But I don't know all the methods, especially not with the Spigot Api
Do you have at least an idea how to create a plugin with commands?
Just think that you want to trigger these things with commands
Yes, I have already programmed plugins, e.g. Ban, Report Plugin etc.
If you have nothing else to do XD: https://gist.github.com/Unknow03/6a99a5c6f55afc87ba0e72488f33f5b9
I hope that explains itself a lot, the method names are quite simple from Spigot. I don't have any error messages etc in there, I also have to say that this has not been tested. But if there are any questions, please feel free to ask.
Edit: Have just seen that one message per world is sent in the ServerWelten query, but it doesn't matter, it's only about the API.
For question one I have an answer: you type: / kill @e (replace @e with that which means "all objects") if you don't want any more mobs, type: / gamerule doMobSpawn false (or somehow)
Source code:
And now I have two problems.
The mobs are not deleted properly, so I can no longer hit / interact with them and the mobs no longer move, but are still displayed visually
After I have executed the command, I can no longer write anything in the chat / no further command it is then in the chat when I try "Can't send chat message"
And now I have two problems.
Before that there were 2 questions.
For 1. Can't I really explain myself do you have any other plugins or classes in between? Are the mobs still displayed? If you do the CMD again afterwards, will as many be killed again? Or just the new ones?
The 2nd I can't explain to myself that I have never come across the plugin then try it myself later. Which version?
So I actually have no other plugin that has an impact on the mobs. And as I said before the mobs are displayed (whereby they do nothing, they don't even attack) and the server (the new mobs that I spawned) start to lie (tps is 20). Also I can no longer execute commands, so I don't know what if I would run killall again
What version is the server? Then I'll take a look at it myself later.
1.11.2