generated from srnyx/plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
AnnoyingPAPIExpansion.java
41 lines (33 loc) · 1.05 KB
/
AnnoyingPAPIExpansion.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package xyz.srnyx.annoyingapi;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.jetbrains.annotations.NotNull;
/**
* An extension of {@link PlaceholderExpansion} to allow for easier creation of PlaceholderAPI expansions
*/
public abstract class AnnoyingPAPIExpansion extends PlaceholderExpansion {
/**
* Constructor for the {@link AnnoyingPAPIExpansion} class
*/
public AnnoyingPAPIExpansion() {
// Only exists to provide a Javadoc
}
/**
* The {@link AnnoyingPlugin plugin} that this expansion is for
*
* @return the {@link AnnoyingPlugin plugin} that this expansion is for
*/
@NotNull
public abstract AnnoyingPlugin getAnnoyingPlugin();
@Override @NotNull
public String getAuthor() {
return getAnnoyingPlugin().getDescription().getAuthors().get(0);
}
@Override @NotNull
public String getVersion() {
return getAnnoyingPlugin().getDescription().getVersion();
}
@Override
public final boolean persist() {
return true;
}
}