Skip to content

Placeholder is a powerful PocketMine-MP plugin enabling dynamic placeholder creation and integration into your server's scoreboard, enhancing player interaction and server customization.

License

Notifications You must be signed in to change notification settings

MohamadRZ4/Placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlaceholderAPI

PlaceholderAPI is a powerful and flexible placeholder system for PocketMine-MP. It allows you to easily manage placeholders and dynamically replace them in messages, commands, and more. Whether you're creating a server with custom features or just want to improve the player experience, PlaceholderAPI has you covered!

Features

  • Dynamic Placeholder Replacement: Easily replace placeholders with values in messages, commands, and more.
  • Custom Placeholder Support: Create and register your own placeholders.
  • Advanced API: Provides a clean and simple API to integrate placeholders into your PocketMine-MP plugins.

Steps

  1. Download the latest release of PlaceholderAPI from the Releases page.
  2. Place the .phar file in the plugins/ directory of your PocketMine-MP server.
  3. Start your server, and PlaceholderAPI will be automatically loaded.

Example Placeholders

  • %online_players%: Shows the current number of online players.
  • %max_players%: Shows the maximum number of players allowed on the server.
  • %server_name%: Displays the name of the server.

Wiki

For more detailed documentation and guides, please visit our wiki.

Placeholder Replacements

In your plugin or messages, you can use placeholders such as %online_players% and %max_players%. PlaceholderAPI will automatically replace them with the corresponding values.

$text = "%online_players%/%max_players%";
$processedText = PlaceholderAPI::getInstance()->processPlaceholders($player, $text);
$this->getLogger()->info(processedText); // Output: 5/100 (Example output)

Contributing

We welcome contributions to PlaceholderAPI! If you'd like to help improve the plugin, feel free to fork the repository and create a pull request.

About

Placeholder is a powerful PocketMine-MP plugin enabling dynamic placeholder creation and integration into your server's scoreboard, enhancing player interaction and server customization.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages