Added AbstractPlaceholderExpansion for more readable expansion

This commit is contained in:
David 2023-03-10 21:34:53 +02:00
parent a0b177bdd8
commit b30370f40c
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
package me.clip.placeholderapi.expansion;
/**
* This is a convenient skeletal class for all plugins that want to supply placeholders.
*/
public abstract class AbstractPlaceholderExpansion extends PlaceholderExpansion
{
private final String identifier, version, author;
protected AbstractPlaceholderExpansion(String identifier, String version, String author) {
this.identifier = identifier;
this.version = version;
this.author = author;
}
@Override
public String getIdentifier() {
return this.identifier;
}
@Override
public String getVersion() {
return this.version;
}
@Override
public String getAuthor() {
return this.author;
}
}