Add index pages and use grid cards

This commit is contained in:
Andre601
2024-01-19 01:14:40 +01:00
parent 5f1a72bd7f
commit 2eeb7ecea6
7 changed files with 168 additions and 25 deletions

37
docs/developers/index.md Normal file
View 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>

View File

@@ -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 {
}
}
```
///