Class BukkitScript
java.lang.Object
dev.magicmq.pyspigot.manager.script.Script
dev.magicmq.pyspigot.bukkit.manager.script.BukkitScript
- All Implemented Interfaces:
Comparable<dev.magicmq.pyspigot.manager.script.Script>
public class BukkitScript
extends dev.magicmq.pyspigot.manager.script.Script
An extension of the base
Script class that includes Bukkit-specific code for initializing script permissions.-
Constructor Summary
ConstructorsConstructorDescriptionBukkitScript(Path path, String name, BukkitScriptOptions options, boolean project) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the script's permission (from its options) to the server.voidRemoves the script's permissions from the server.Methods inherited from class dev.magicmq.pyspigot.manager.script.Script
close, compareTo, equals, getInterpreter, getLogFileName, getLogger, getMainScriptPath, getModules, getName, getOptions, getPath, getSimpleName, getUptime, hashCode, isProject, prepare
-
Constructor Details
-
BukkitScript
- Parameters:
path- The path that corresponds to the file where the script livesname- The name of this script. Should contain its extension (.py)options- TheScriptOptionsfor this scriptproject- True if this script is a multi-file project, false if it is a single-file script
-
-
Method Details
-
initPermissions
public void initPermissions()Adds the script's permission (from its options) to the server. -
removePermissions
public void removePermissions()Removes the script's permissions from the server.
-