mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-02-05 15:55:28 +01:00
Added AbstractPlaceholderExpansion for more readable expansion
This commit is contained in:
parent
a0b177bdd8
commit
b30370f40c
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user