Package buscript.multiverse

Examples of buscript.multiverse.Buscript.executeScript()


            buscript.getGlobalScope().put("portal", buscript.getGlobalScope(), portal);
            buscript.getGlobalScope().put("player", buscript.getGlobalScope(), player);
            buscript.getGlobalScope().put("travelAgent", buscript.getGlobalScope(), agent);
            buscript.getGlobalScope().put("allowPortal", buscript.getGlobalScope(), true);
            buscript.getGlobalScope().put("portalSession", buscript.getGlobalScope(), ps);
            buscript.executeScript(handlerScript, player.getName());
            buscript.getGlobalScope().put("portal", buscript.getGlobalScope(), null);
            buscript.getGlobalScope().put("player", buscript.getGlobalScope(), null);
            buscript.getGlobalScope().put("travelAgent", buscript.getGlobalScope(), null);
            buscript.getGlobalScope().put("portalSession", buscript.getGlobalScope(), null);
            Object allowObject = buscript.getGlobalScope().get("allowPortal", buscript.getGlobalScope());
View Full Code Here


                Buscript buscript = plugin.getCore().getScriptAPI();
                File preResetScript = new File(buscript.getScriptFolder(), getPreResetScript());
                if (preResetScript.exists()) {
                    buscript.getGlobalScope().put("world", buscript.getGlobalScope(), getMVWorld());
                    buscript.registerStringReplacer(new ScriptWorldNameReplacer(getName()));
                    buscript.executeScript(preResetScript);
                    buscript.getGlobalScope().put("world", buscript.getGlobalScope(), null);
                } else {
                    plugin.log(Level.WARNING, "preresetscript for " + getName() + " does not exist!");
                }
            }
View Full Code Here

                Buscript buscript = plugin.getCore().getScriptAPI();
                File postResetScript = new File(buscript.getScriptFolder(), getPostResetScript());
                if (postResetScript.exists()) {
                    buscript.getGlobalScope().put("world", buscript.getGlobalScope(), world);
                    buscript.registerStringReplacer(new ScriptWorldNameReplacer(getName()));
                    buscript.executeScript(postResetScript);
                    buscript.getGlobalScope().put("world", buscript.getGlobalScope(), null);
                } else {
                    plugin.log(Level.WARNING, "postresetscript for " + getName() + " does not exist!");
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.