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

    Constructors
    Constructor
    Description
    BukkitScript(Path path, String name, BukkitScriptOptions options, boolean project)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds the script's permission (from its options) to the server.
    void
    Removes 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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BukkitScript

      public BukkitScript(Path path, String name, BukkitScriptOptions options, boolean project)
      Parameters:
      path - The path that corresponds to the file where the script lives
      name - The name of this script. Should contain its extension (.py)
      options - The ScriptOptions for this script
      project - 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.