@Override public boolean load(final Player player,final List<String> args){
  groovyBinding.setVariable("player",player);
  if (args != null) {
    groovyBinding.setVariable("args",args.toArray(new String[args.size()]));
  }
 else {
    groovyBinding.setVariable("args",new String[0]);
  }
  final GroovyShell interp=new GroovyShell(groovyBinding);
  boolean ret=true;
  preExecute(player,args);
  try {
    final File f=new File(groovyScript);
    interp.evaluate(f);
  }
 catch (  final Exception e) {
    logger.error("Exception while sourcing file " + groovyScript,e);
    setMessage(e.getMessage());
    ret=false;
  }
catch (  final Error e) {
    logger.error("Exception while sourcing file " + groovyScript,e);
    setMessage(e.getMessage());
    ret=false;
  }
  postExecute(player,args,ret);
  return (ret);
}

@ Override public boolean load ( final Player player , final List < String > args ) { groovyBinding . setVariable ( "player" , player ) ; if ( args != null ) { groovyBinding . setVariable ( "args" , args . toArray ( new String [ args . size ( ) ] ) ) ; } else { groovyBinding . setVariable ( "args" , new String [ 0 ] ) ; } final GroovyShell interp = new GroovyShell ( groovyBinding ) ; boolean ret = true ; preExecute ( player , args ) ; try { final File f = new File ( groovyScript ) ; interp . evaluate ( f ) ; } catch ( final Exception e ) { logger . error ( "Exception while sourcing file " + groovyScript , e ) ; setMessage ( e . getMessage ( ) ) ; ret = false ; } catch ( final Error e ) { logger . error ( "Exception while sourcing file " + groovyScript , e ) ; setMessage ( e . getMessage ( ) ) ; ret = false ; } postExecute ( player , args , ret ) ; return ( ret ) ; }
initial load of this script .
