mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 08:39:09 +00:00
27 lines
424 B
Java
27 lines
424 B
Java
package org.parabot.environment.scripts.executers;
|
|
|
|
import org.parabot.environment.scripts.Script;
|
|
|
|
/**
|
|
*
|
|
* Executes a script
|
|
*
|
|
* @author Everel
|
|
*
|
|
*/
|
|
public abstract class ScriptExecuter {
|
|
|
|
public abstract void run(final ThreadGroup tg);
|
|
|
|
/**
|
|
* Start script.
|
|
* @param tg
|
|
* @param script
|
|
*/
|
|
public final void finalize(final ThreadGroup tg, final Script script) {
|
|
new Thread(tg, script).start();
|
|
}
|
|
|
|
|
|
}
|