mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Updated Developer API (markdown)
parent
60b42015ab
commit
b28caeddf5
@ -41,11 +41,26 @@ if (provider.isPresent()) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to use LuckPerms in your onEnable method, you need to add the following to your plugins `plugin.yml`.
|
If you want to use LuckPerms in your onEnable/ServerStart method:
|
||||||
|
|
||||||
|
On Bukkit/Bungee, you need to add the following to your plugins `plugin.yml`.
|
||||||
```yml
|
```yml
|
||||||
depend: [LuckPerms]
|
depend: [LuckPerms]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
On Sponge, add the following to your plugins declaration.
|
||||||
|
```java
|
||||||
|
@Plugin(
|
||||||
|
id = "myPlugin",
|
||||||
|
dependencies = {
|
||||||
|
@Dependency(id = "luckperms")
|
||||||
|
}
|
||||||
|
)
|
||||||
|
public class MyPlugin {
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
You can add LuckPerms as a Maven dependency by adding the following to your projects `pom.xml`.
|
You can add LuckPerms as a Maven dependency by adding the following to your projects `pom.xml`.
|
||||||
````xml
|
````xml
|
||||||
<repositories>
|
<repositories>
|
||||||
|
Loading…
Reference in New Issue
Block a user