mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-10-27 17:21:58 +01:00
Add index pages and use grid cards
This commit is contained in:
37
docs/developers/index.md
Normal file
37
docs/developers/index.md
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
description: Pages aimed at plugin developers who want to use PlaceholderAPI in their own plugin or want to make their own PlaceholderExpansion.
|
||||
---
|
||||
|
||||
# Dev Guides
|
||||
|
||||
The pages listed under this section are meant for developers of plugins who want to either create PlaceholderExpansions or want to otherwise work with PlaceholderAPI (i.e. supporting external placeholders through it).
|
||||
|
||||
----
|
||||
|
||||
<div class="grid cards hide-list" markdown>
|
||||
|
||||
- ### Using PlaceholderAPI
|
||||
|
||||
----
|
||||
|
||||
Guide on how to use PlaceholderAPI in your own plugin.
|
||||
|
||||
- [:octicons-chevron-right-16: Go to Page](using-placeholderapi.md)
|
||||
|
||||
- ### Creating a PlaceholderExpansion
|
||||
|
||||
----
|
||||
|
||||
Comprehensive guide on how to create a PlaceholderExpansion for other plugins to use through PlaceholderAPI.
|
||||
|
||||
- [:octicons-chevron-right-16: Go to Page](creating-a-placeholderexpansion.md)
|
||||
|
||||
- ### eCloud
|
||||
|
||||
----
|
||||
|
||||
Information about PlaceholderAPI's expansion cloud, including how to submit your own expansion or update it.
|
||||
|
||||
- [:octicons-chevron-right-16: Go to Page](expansion-cloud.md)
|
||||
|
||||
</div>
|
||||
@@ -124,7 +124,7 @@ To use placeholders from other plugins in our own plugin, we simply have to [(so
|
||||
|
||||
It is also important to point out, that any required plugin/dependency for an expansion has to be on the server and enabled, or the `setPlaceholders` method will just return the placeholder itself (do nothing).
|
||||
|
||||
**Example**:
|
||||
/// example
|
||||
Let's assume we want to send a custom join message that shows the primary group a player has.
|
||||
To achieve this, we can do the following:
|
||||
```java
|
||||
@@ -177,3 +177,4 @@ public class JoinExample extends JavaPlugin implements Listener {
|
||||
}
|
||||
}
|
||||
```
|
||||
///
|
||||
Reference in New Issue
Block a user