public static class AbstractPlaceholderManager.JSPlaceholder extends Placeholder
Constructor and Description |
---|
JSPlaceholder(String placeholderName,
ScriptEngine engine,
File file) |
JSPlaceholder(String placeholderName,
ScriptEngine engine,
InputStream file) |
Modifier and Type | Method and Description |
---|---|
Object |
parse(Timings.Timing timing,
Object context,
Map<String,Object> variables,
Object... args)
Replace this placeholder with appropriate value.
|
ValidationResult |
validate(Object... args) |
runSyncTaskForFuture, runTaskLater, runTaskLater
public JSPlaceholder(String placeholderName, ScriptEngine engine, File file) throws ScriptException, IOException
ScriptException
IOException
public JSPlaceholder(String placeholderName, ScriptEngine engine, InputStream file) throws ScriptException, IOException
ScriptException
IOException
public ValidationResult validate(Object... args)
public Object parse(Timings.Timing timing, Object context, Map<String,Object> variables, Object... args) throws Exception
Placeholder
parse
in class Placeholder
timing
- the parent timing instance. Extend timing using this instance, not creating new one. Can be null.context
- the context where placeholder was used. It's Event for Bukkit API.variables
- variables that will be used in the Placeholder. Some may can be overridden.args
- arguments to be usedException