### Script Queues Control # Updated by Mwthorn (Discord: Mwthorn#2843) (Mail: mwthorn@gmail.com) # Ask for help at any time on the Official Denizen Script Discord: https://discord.gg/Q6pZGSR # A simple script for clearing or listing queues currently running. Useful for debugging or analyzing your scripts. # For more info about a queue, visit https://one.denizenscript.com/denizen/lngs/QueueTag or https://one.denizenscript.com/denizen/lngs/Script%20Syntax # It has the following commands included: # /listq - Lists all queues # /killq - Removes all queues ## Instructions: # - Place the script in your script folder. # - Restart server or reload scripts # - Done! Now you can use /listq or /killq Clear_All_Queues: type: command name: killq description: Removes all queues from Denizen usage: /killq debug: false script: - if !: - if !: - stop - define allq:0 - foreach ]>: - narrate "<&7>clearing queue<&co> <[value]>" - queue <[value]> clear - define allq:++ - if <[loop_index].mod[50]> == 1: - wait 2t - narrate "<&7>Finished... Total<&co><&e> <[allq]>" List_All_Queues: type: command name: listq description: Lists all queues from Denizen usage: /listq debug: false script: - if !: - if !: - stop - narrate "<&a>Listing all queues<&co>" - define allq:0 - foreach ]>: - narrate "<[value]>" - define allq:++ - if <[loop_index].mod[50]> == 1: - wait 2t - narrate "<&a>Finished... Total<&co><&e> <[allq]>"