This Gitbook is for documenting the phBot plugin API.
Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java.
Python 3.4 was chosen for the plugin system because it is easy to learn and does not require a compiler. Simply save your script inside the
Pluginsfolder and launch the bot. Done!
I have made many functions available to Python. These functions allow you to get all players near you, get all NPCs/teleporters near you, and much more. You can do anything you want with the data. It's all up to you.
For example, a chat API is available; with this you can send messages to all nearby players.