mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
28 lines
450 B
Java
28 lines
450 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) {
|
|
Thread thread = new Thread(tg, script);
|
|
thread.start();
|
|
}
|
|
|
|
|
|
}
|