PlaceholderAPI/docs/faq.md

76 lines
4.5 KiB
Markdown
Raw Normal View History

2024-01-13 16:37:26 +01:00
---
description: List of frequently asked questions and their answers.
---
2024-01-13 15:59:50 +01:00
# FAQ
2022-06-30 21:44:30 +02:00
Here are frequently asked questions about stuff related to PlaceholderAPI.
## What is an Expansion?
2024-01-13 15:59:50 +01:00
An expansion (aka PlaceholderExpansion) usualy refers to a separate jar file that is added to PlaceholderAPI's `expansion` folder to add extra placeholders to use in other plugins.
2024-01-13 15:59:50 +01:00
External PlaceholderExpansions are downloaded from PlaceholderAPI's eCloud through the [`/papi ecloud download <expansion>`](commands.md#papi-ecloud-download) command.
2022-06-30 21:44:30 +02:00
2024-01-13 15:59:50 +01:00
Plugins may provide their own PlaceholderExpansion directly without any external jar file being used.
2022-06-30 21:44:30 +02:00
## It only shows `%placeholder%` and not the variable
2024-01-13 15:59:50 +01:00
When a plugin or [`/papi parse me %placeholder%`](commands.md#papi-parse) only returns the placeholder itself and no value should you check for the following things:
2022-06-30 21:44:30 +02:00
- ### The expansion is actually installed.
2024-01-13 15:59:50 +01:00
In many cases is the cause that the expansion of the placeholder is missing.
Just execute [`/papi ecloud download <expansion>`](commands.md#papi-ecloud-download) followed by `/papi reload` to activate it. You can find a list of Expansions and their Placeholders [on the placeholder list](users/placeholder-list.md).
/// note
Not all placeholders come in their own expansion. Some plugins *hardcode* them in and load them on startup, when hooking into PlaceholderAPI.
Such expansions may have `NO DOWNLOAD COMMAND` displayed on the Placeholder list.
///
2022-08-28 23:17:38 +02:00
- ### Plugin actually supports PlaceholderAPI
2024-01-13 15:59:50 +01:00
It can happen that the plugin you use to display the placeholder in doesn't support PlaceholderAPI. In such a case check, if the parse command returns the actual value of a placeholder.
If that is the case while the plugin is still displaying the placeholder, can this be an indicator of the plugin not supporting PlaceholderAPI.
You can find a list of plugins supporting PlaceholderAPI [here](users/plugins-using-placeholderapi.md).
Just make sure that "Supports placeholders" has a check mark in front of it.
- ### No typo in the placeholder
2024-01-13 15:59:50 +01:00
Double-check that the placeholder you set doesn't contain a typo. You can use [`/papi ecloud placeholders <expansion>`](commands.md#papi-ecloud-placeholders) (replace `<expansion>` with the name of the expansion) to get a list of all the placeholders the expansion may have.
Keep in mind that this only works for separate expansions on the eCloud and not for those that are loaded by plugins.
- ### Plugin is enabled
2024-01-13 15:59:50 +01:00
If an expansion depends on a plugin, make sure you have the plugin installed and that it is enabled (Shows green in `/pl`).
2022-06-30 21:44:30 +02:00
## I can't download the expansion
2024-01-13 15:59:50 +01:00
2022-06-30 21:44:30 +02:00
Make sure, that the connection to the cloud (https://api.extendedclip.com) isn't blocked by a firewall or similar.
Next step would be to check if the expansion actually exists on the cloud. Not all plugins provide their placeholders through a separate jar on the cloud. Some have them build in and register them on startup.
2023-10-28 17:32:36 +02:00
If both checks failed, go to the cloud-page and download the jar manually. Put it then in the `expansions` folder of PlaceholderAPI (`/plugins/PlaceholderAPI/expansions`).
Finally execute `/papi reload` to load the expansion.
2022-06-30 21:44:30 +02:00
## How can other plugins use my placeholders with PlaceholderAPI?
2024-01-13 15:59:50 +01:00
See the [Using PlaceholderAPI](developers/using-placeholderapi.md) page.
2022-06-30 21:44:30 +02:00
## Can I help on this wiki?
2024-01-13 15:59:50 +01:00
2022-06-30 21:44:30 +02:00
You sure can!
We welcome contributions to our wiki by everyone. If you found a typo or want to improve this wiki in another way, head over to the [Wiki's readme file][readme] to find out about how you can contribute towards this wiki.
## PlaceholderAPI is posting an error about an outdated expansion?
2024-01-13 15:59:50 +01:00
2022-06-30 21:44:30 +02:00
```
[00:00:01 ERROR]: [PlaceholderAPI] Failed to load Expansion class <expansion> (Is a dependency missing?)
[00:00:01 ERROR]: [PlaceholderAPI] Cause: NoClassDefFoundError <path>
```
If you receive the above error, try to do the following steps:
- Make sure any required dependency of the mentioned expansion (e.g. a plugin) is installed.
- Make sure you use the latest version supported for the server version you use.
- If you downloaded the jar from the ecloud, make sure it isn't malformed/corrupted.
If the issue persists after you've done those checks, report it to the author of the expansion.
In most cases is the issue that either a dependency is missing or that the expansion tries to use outdated methods from PlaceholderAPI.
2024-01-13 15:59:50 +01:00
[readme]: https://github.com/PlaceholderAPI/PlaceholderAPI/blob/wiki/README.md