Skip to content

nasiridrishi/PrimePlaceHolders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrimePlaceHolders

A placeholder plugin for PocketMine


Available Placeholders:

  • %player% - Player Name
  • %displayname% - Player Display Name
  • %ping% - Player Ping
  • %gamemode% - Player Gamemode
  • %health% - Player Health
  • %maxhealth% - Player Max Health
  • %world% - Player World Name
  • %worldtime% - Player World Time
  • %pos_x% - Player X Position
  • %pos_y% - Player Y Position
  • %pos_z% - Player Z Position
  • %online_players% - Online Players
  • %max_players% - Max Players

TODO:

  • Add more placeholders
  • Add API for developers
  • Add addon system which can load php class directly from plugins data folder

API:

  • Register new placeholder
PrimePlaceHolder::getInstance()
  ->registerPlaceholder(new class extends PrimePlaceHolder{});

or

PrimePlaceHolder::getInstance()->registerPlaceholder(new ClosurePlaceHolder("identifier", function (Player $player, string $string): string {})));
  • Set placeholders
PrimePlaceHolder::getInstance()->setPlaceholders($player, $string);

About

A placeholder plugin for pocketmine plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages