20 package net.sf.gridarta.plugin;
23 import bsh.Interpreter;
24 import java.util.HashMap;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
39 private final Map<String, Object>
variables =
new HashMap<>();
47 variables.put(name, value);
57 for (
final Map.Entry<String, Object> variable : variables.entrySet()) {
58 interpreter.set(variable.getKey(), variable.getValue());
60 interpreter.set(
"pluginRunMode", pluginRunMode);
void addPluginParameter(@NotNull final String name, @Nullable final Object value)
Defines a variable to be passed to plugins.
The run mode of a plugin plugin.
Makes basic Gridarta classes available to scripts.
void setInterpreterValues(@NotNull final Interpreter interpreter, @NotNull final PluginRunMode pluginRunMode)
Adds variables to a Interpreter instance.
final Map< String, Object > variables
All defined variables for new plugins.