Package net.aufdemrand.denizen.scripts.queues

Examples of net.aufdemrand.denizen.scripts.queues.ScriptQueue.forceToTimed()


        if (queue instanceof Delayable)
               ((Delayable) queue).delayFor(delay);
        else {
            scriptEntry.setInstant(false);
            dB.echoDebug(scriptEntry, "Forcing queue " + queue.id + " into a timed queue...");
            queue.forceToTimed(delay);
        }
    }
}
View Full Code Here


            case PAUSE:
                if (queue instanceof Delayable) {
                    ((Delayable) queue).setPaused(true);
                }
                else {
                    queue.forceToTimed(new Duration(1L)).setPaused(true);
                }
                return;

            case RESUME:
                if (queue instanceof Delayable)
View Full Code Here

            case DELAY:
                if (queue instanceof Delayable)
                    ((Delayable) queue).delayFor(delay);
                else
                    queue.forceToTimed(delay);
                return;

        }

    }
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.