Library Placeholder: Difference between revisions

From MBedwars
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
That's it! :)<br>
That's it! :)<br>
<br>
<br>
''You can find here all the placeholders which MBedwars register.''
''You can find [[Library_Placeholder#List_of_placeholders_provided_by_MBedwars|here]] all the placeholders which MBedwars register.''
= Use placeholders from other plugins within MBedwars =
= Use placeholders from other plugins within MBedwars =
Follow these steps to enable it:<br>
Follow these steps to enable it:<br>

Revision as of 21:35, 27 August 2019

Supported PlaceholderAPI plugins

What's a placeholder?

Placeholders can be compared with variables.
They can be added to amongst other things in messages, the plugin will later automatically replace them.
An example:

Max currently has %amount_of_diamonds% diamonds in his inventory

Will, once processed, e.g. show as:

Max currently has 5 diamonds in his inventory

About

A typical PlaceholderAPI plugin provides an API for other plugins to use, by that making the life for anyone easy.
Plugins are able to register their own placeholders or use the ones which are already registred.
MBedwars can do both, if configurated.

Tell MBedwars to provide placeholders

Follow these steps to enable it:

  1. Open your config.cm2 file
  2. Set the value of 'placeholderapi-enabled' to true
  3. Set the value of 'placeholderapi-registercustom' to true
  4. Restart your server (recommended, otherwise use /reload)

That's it! :)

You can find here all the placeholders which MBedwars register.

Use placeholders from other plugins within MBedwars

Follow these steps to enable it:

  1. Open your config.cm2 file
  2. Set the value of 'placeholderapi-enabled' to true
  3. Restart your server (recommended, otherwise use /reload)

That's it! :)
MBedwars will now automatically allow you to use placeholders from other plugins in e.g. messages or scoreboard.

List of placeholders provided by MBedwars

  • mbedwars_{arena}-players
  • mbedwars_{arena}-maxplayers
  • mbedwars_{arena}-status
  • mbedwars_{arena}-teams
  • mbedwars_{arena}-teamsize
  • mbedwars_playerarena-name
  • mbedwars_playerarena-players
  • mbedwars_playerarena-maxplayers
  • mbedwars_playerarena-status
  • mbedwars_playerarena-teams
  • mbedwars_playerarena-teamsize
  • mbedwars_playerarena-current-team
  • mbedwars_playerarena-current-team-color
  • mbedwars_stats-rank
  • mbedwars_stats-wins
  • mbedwars_stats-loses
  • mbedwars_stats-kills
  • mbedwars_stats-deaths
  • mbedwars_stats-bedsdestroyed
  • mbedwars_stats-roundsplayed
  • mbedwars_stats-playtime