Library Placeholder: Difference between revisions

From MBedwars
Jump to navigation Jump to search
(Created page with "= Supported Nick plugins = * AutoNicker * BetterNick = What's a placeholder? = Placeholders can be compared with variables.<br> T...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Supported Nick plugins =
= Supported PlaceholderAPI plugins =
* [[Library_AutoNicker|AutoNicker]]
* [[Library_PlaceholderAPI|PlaceholderAPI]]
* [[Library_BetterNick|BetterNick]]
= What's a placeholder? =
= What's a placeholder? =
Placeholders can be compared with variables.<br>
Placeholders can be compared with variables.<br>
They can be added to amongst other things in messages, the plugin will later automatically replace them.<br>
They can be added to amongst other things in messages, the plugin will later automatically replace them.<br>
An example:<br>
An example:<br>
  Max currently has %amount_of_diamonds% diamonds in his inventory
  Mathew currently has %amount_of_diamonds% diamonds in his inventory
Will, once processed, e.g. show as:
Will, once processed, e.g. show as:
  Max currently has 5 diamonds in his inventory
  Mathew currently has 5 diamonds in his inventory
= About =
= About =
A typical PlaceholderAPI plugin provides an API for other plugins to use, by that making the life for anyone easy.<br>
A typical PlaceholderAPI plugin provides an API for other plugins to use, by that making the life for anyone easy.<br>
Plugins are able to register their own placeholders or use the ones which are already registred.<br>
Plugins are able to register their own placeholders or use the ones which are already registred.<br>
MBedwars can do both, if configurated.
MBedwars can do both, if configurated.
= How to enable it =
Follow these steps to enable it:<br>
# Open your config.cm2 file
# Set the value of 'placeholderapi-enabled' to true
# Restart your server (recommended, otherwise use /reload)
That's it! :)<br>
You're now able to use placeholders within bedwars and placeholders that MBedwars provides in other plugins.<br>
<br>
''You can find [[Library_Placeholder#List_of_placeholders_provided_by_MBedwars|here]] all the placeholders which MBedwars register.''
= List of placeholders provided by MBedwars =
* %mbedwars_arena-<arena>-players%
* %mbedwars_arena-<arena>-maxplayers%
* %mbedwars_arena-<arena>-status%
* %mbedwars_arena-<arena>-teams%
* %mbedwars_arena-<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_playerarena-team-<team>-size%
* %mbedwars_playerarena-team-<team>-status%
* %mbedwars_stats-<id>%
** '''Default ones:'''
** %mbedwars_stats-rank%
** %mbedwars_stats-wins%
** %mbedwars_stats-loses%
** %mbedwars_stats-rounds_played%
** %mbedwars_stats-wl%
** %mbedwars_stats-kills%
** %mbedwars_stats-final_kills%
** %mbedwars_stats-deaths%
** %mbedwars_stats-kd%
** %mbedwars_stats-beds_destroyed%
** %mbedwars_stats-play_time%

Latest revision as of 15:59, 11 February 2021

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:

Mathew currently has %amount_of_diamonds% diamonds in his inventory

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

Mathew 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.

How to enable it

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! :)
You're now able to use placeholders within bedwars and placeholders that MBedwars provides in other plugins.

You can find here all the placeholders which MBedwars register.

List of placeholders provided by MBedwars

  • %mbedwars_arena-<arena>-players%
  • %mbedwars_arena-<arena>-maxplayers%
  • %mbedwars_arena-<arena>-status%
  • %mbedwars_arena-<arena>-teams%
  • %mbedwars_arena-<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_playerarena-team-<team>-size%
  • %mbedwars_playerarena-team-<team>-status%
  • %mbedwars_stats-<id>%
    • Default ones:
    • %mbedwars_stats-rank%
    • %mbedwars_stats-wins%
    • %mbedwars_stats-loses%
    • %mbedwars_stats-rounds_played%
    • %mbedwars_stats-wl%
    • %mbedwars_stats-kills%
    • %mbedwars_stats-final_kills%
    • %mbedwars_stats-deaths%
    • %mbedwars_stats-kd%
    • %mbedwars_stats-beds_destroyed%
    • %mbedwars_stats-play_time%