command /joindungeon:
trigger:
if {dungeon.begin} is false:
if {dungeon.%player%.begin} is false:
set {dungeon.%player%.begin} to true
add player to {dungeons.players.list::*}
add 1 to {dungeon.playercount}
teleport player to {dungeon.wait}
if {dungeon.playercount} is equal to 2:
make console execute command "dungeon begin"
trigger:
if {dungeon.begin} is false:
if {dungeon.%player%.begin} is false:
set {dungeon.%player%.begin} to true
add player to {dungeons.players.list::*}
add 1 to {dungeon.playercount}
teleport player to {dungeon.wait}
if {dungeon.playercount} is equal to 2:
make console execute command "dungeon begin"