From 92d30ea4cb5813879455a27dd56af71865aa634f Mon Sep 17 00:00:00 2001 From: extendedclip Date: Sun, 8 Apr 2018 04:02:09 -0400 Subject: [PATCH] Format --- .../expansion/PlaceholderExpansion.java | 50 +++++++------------ 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java b/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java index 076247c..7813ffe 100644 --- a/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java +++ b/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java @@ -39,15 +39,6 @@ public abstract class PlaceholderExpansion extends PlaceholderHook { return getIdentifier(); } - /** - * Expansions that do not use the ecloud and instead register from the dependency should set this to true - * to ensure that your placeholder expansion is not unregistered when the papi reload command is used - * @return if the expansion should persist through reloads - */ - public boolean persist() { - return false; - } - /** * Get the identifier that this placeholder expansion uses to be passed placeholder requests * @return placeholder identifier that is associated with this class @@ -75,6 +66,23 @@ public abstract class PlaceholderExpansion extends PlaceholderHook { * @return current version of this expansion */ public abstract String getVersion(); + + public String getDescription() { return null; } + + public String getLink() { return null; } + + public List getPlaceholders() { + return null; + } + + /** + * Expansions that do not use the ecloud and instead register from the dependency should set this to true + * to ensure that your placeholder expansion is not unregistered when the papi reload command is used + * @return if the expansion should persist through reloads + */ + public boolean persist() { + return false; + } /** * Check if a placeholder has already been registered with this identifier @@ -110,30 +118,6 @@ public abstract class PlaceholderExpansion extends PlaceholderHook { return PlaceholderAPIPlugin.getInstance(); } - /** - * A short description of this expansion - * @return null if no description - */ - public String getDescription() { - return null; - } - - /** - * The url link to this expansion page - * @return null if no link - */ - public String getLink() { - return null; - } - - /** - * A list of all valid placeholders - * @return null if you dont care - */ - public List getPlaceholders() { - return null; - } - public String getString(String path, String def) { return getPlaceholderAPI().getConfig().getString("expansions." + getIdentifier() + "." + path, def); }