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, runTaskLaterpublic JSPlaceholder(String placeholderName, ScriptEngine engine, File file) throws ScriptException, IOException
ScriptExceptionIOExceptionpublic JSPlaceholder(String placeholderName, ScriptEngine engine, InputStream file) throws ScriptException, IOException
ScriptExceptionIOExceptionpublic ValidationResult validate(Object... args)
public Object parse(Timings.Timing timing, Object context, Map<String,Object> variables, Object... args) throws Exception
Placeholderparse in class Placeholdertiming - 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