Class BukkitScriptOptions
java.lang.Object
dev.magicmq.pyspigot.manager.script.ScriptOptions
dev.magicmq.pyspigot.bukkit.manager.script.BukkitScriptOptions
public class BukkitScriptOptions
extends dev.magicmq.pyspigot.manager.script.ScriptOptions
An extension of the base
ScriptOptions class that includes Bukkit-specific code for parsing and registering script permissions.-
Constructor Summary
ConstructorsConstructorDescriptionInitialize a new BukkitScriptOptions for a multi-file project, using the appropriate values in the project's project.yml file.BukkitScriptOptions(Path scriptPath) Initialize a new BukkitScriptOptions for a single-file script, using the appropriate values in the script_options.yml file. -
Method Summary
Modifier and TypeMethodDescriptionGet the default permissions for permissions defined for this script.Get a list of permissions defined for this script.toString()Methods inherited from class dev.magicmq.pyspigot.manager.script.ScriptOptions
getLoadPriority, getMainScript, getMinLoggingLevel, getPluginDependencies, isEnabled, isFileLoggingEnabled
-
Constructor Details
-
BukkitScriptOptions
Initialize a new BukkitScriptOptions for a single-file script, using the appropriate values in the script_options.yml file.- Parameters:
scriptPath- The path of the script file whose script options should be initialized
-
BukkitScriptOptions
Initialize a new BukkitScriptOptions for a multi-file project, using the appropriate values in the project's project.yml file.- Parameters:
config- The project.yml file to parse that belongs to the project. If the project does not have a project.yml file, pass null, and the default values will be used
-
-
Method Details
-
getPermissionDefault
Get the default permissions for permissions defined for this script.- Returns:
- The default permission level
-
getPermissions
Get a list of permissions defined for this script.- Returns:
- A list of permissions. Will return an empty list if this script has no permissions defined
-
toString
- Overrides:
toStringin classdev.magicmq.pyspigot.manager.script.ScriptOptions
-