Class ScriptFileWatcher

java.lang.Object
tv.phantombot.script.ScriptFileWatcher
All Implemented Interfaces:
Runnable

public class ScriptFileWatcher extends Object implements Runnable
  • Method Details

    • instance

      public static ScriptFileWatcher instance()
      Method that returns this object.
      Returns:
    • addScript

      public void addScript(Script script)
      Method to add scripts to the array list.
      Parameters:
      script - - Script to be reloaded.
    • kill

      public void kill()
      Method to kill this instance.
    • run

      public void run()
      Method that runs on a new thread to reload scripts.
      Specified by:
      run in interface Runnable