How to use and connect to PlaceholderAPI. Including relational variables (i.e. enemy, friend) and placeholders within placeholders.
In this episode, we’re going to cover:
- Hooking into PlaceholderAPI — How to make your Minecraft plugin connect into PlaceholderAPI for maximum satisfaction.
- Downloading and using expansion packs — How to use 1000s of variables from different plugins with only connecting to PlaceholderAPI.
- Adding your custom variables — Creating a new PlaceholderExpansion class in your plugin to add your own, unique variables.
- Relational variables — How to create variables between each chat message recipient that show differently for each depending on his relationship with the other player. Plus a full example of such a chat system.
- Placeholders within placeholders — Making %player_{health}_tag% placeholders etc.
Source Codes:
Links mentioned:
- PlaceholderAPI download — The official PlaceholderAPI location at SpigotMC.org
- All placeholder list — A list of all expansion packs and their variables.
- Relational variables — A developer guide to making custom variables, namely, relational ones.
Learn To Make Minecraft Plugins
Creating Minecraft plugins can be confusing, with most YouTube tutorials being painfully outdated, disorganized and offering no live support.
If you want to learn from the best and create truly customized plugins, see Project Orion. This is a full training tried and tested by 2,000+ people showing you step-by-step how to make plugins (minigames, custom mobs, antipiracy, dungeons, claims etc.) and much more!
You’ll get 2x/weekly 1:1 calls to review your code and get your questions answered, plus a 1,900+ community on Discord and our private portal, covered by 30-day guarantee. It’s just so much better experience than any blog post or video since I can pour my time and heart into it and teach you 100X faster than any free YouTube tutorial can. Click here to learn more!