MiniGameWorld_Command:
type: command
name: minigameworld
aliases:
- mgw
usage: /huntersmoon <<>action<>>
description: Commands for MiniGameWorld.
permission: minigameworld.command
allowed help:
- determine <player.has_permission[minigameworld.command]||<context.server>>
script:
- - run CreateMiniGameWorld
- - while <server.list_worlds.parse[name].contains[world].not> {
- - wait 1
+ - if <server.list_wolrds.contains[w@MiniGameWorld].not> createworld MiniGameWorld
+ - while <server.list_worlds.contains[w@MiniGameWorld].not> {
+ - wait 1s
}
- teleport <player> 10,10,10,MiniGameWorld
- - queue clear
+ # there is no need for a queue clear at the END of a queue
-CreateMiniGameWorld:
- type: task
- script:
- - execute as_server ex createworld MiniGameWorld