* @param delay long
* @return ScheduledFuture<?>
*/
public static ScheduledFuture<?> executeTask(final Player caller, final String className, final String methodName, final Object[] args, final Map<String, Object> variables, long delay)
{
return ThreadPoolManager.getInstance().schedule(new RunnableImpl()
{
@Override
public void runImpl()
{
callScripts(caller, className, methodName, args, variables);