Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 565 Bytes

File metadata and controls

29 lines (25 loc) · 565 Bytes

LSPlaceholderAPI

Placeholder for PocketMine-MP.

🤲How to use?

Place it at the top of the file:

use LootSpace369\lsplaceholderapi\PlaceHolderAPI;

Place this is in PluginBase file main:

PlaceHolderAPI::init($this);

Example register Placeholder:

$placeholder = "{hi}";
$replace = "hello";
PlaceHolderAPI::register($placeholder, $replace);

For example in text ui or string in more event enter {hi} it will output:

hello

Example update Placeholder:

PlaceHolderAPI::update("{hi}", "hi bro");