mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-09 22:11:17 +02:00
@@ -25,7 +25,9 @@ import me.clip.placeholderapi.PlaceholderHook;
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
@SuppressWarnings("DeprecatedIsStillUsed")
|
||||
/**
|
||||
* Use {@link me.clip.placeholderapi.expansion.PlaceholderExpansion} instead
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class EZPlaceholderHook extends PlaceholderHook {
|
||||
|
||||
@@ -33,8 +35,8 @@ public abstract class EZPlaceholderHook extends PlaceholderHook {
|
||||
private final String plugin;
|
||||
|
||||
public EZPlaceholderHook(Plugin plugin, String identifier) {
|
||||
Validate.notNull(plugin, "Plugin cannot be null");
|
||||
Validate.notNull(identifier, "Placeholder name cannot be null");
|
||||
Validate.notNull(plugin, "Plugin can not be null!");
|
||||
Validate.notNull(identifier, "Placeholder name can not be null!");
|
||||
this.identifier = identifier;
|
||||
this.plugin = plugin.getName();
|
||||
}
|
||||
|
Reference in New Issue
Block a user