command /doubledate: permission: skript.op trigger: loop 50 times: delete {DD.Teamstr::%loop-number%} delete {DDcount} set {_count} to 0 set {testsize} to size of {Teams::*} set {_num1moduled} to size of {Teams::*} while {_num1moduled} is greater than or equal to 2: set {_count} to {_count} + 1 set {_num1moduled} to {_num1moduled} - 2 if {_num1moduled} is 1: send "Could not execute DoubleDate, odd number of teams!" to player stop trigger if {testsize} is 0: send "No Teams currently set!" to player stop trigger else if size of {Teams::*} is greater than 0: set {prevsize} to size of {Teams::*} set {DDcount} to 1 while {prevsize} is greater than 0: set {DD.Teamstr::%{DDcount}%} to "" set {rand1} to a random element of {Teams::*} loop {Team.%{rand1}%::*}: set {DD.Teamstr::%{DDcount}%} to "%{DD.Teamstr::%{DDcount}%}% %loop-value%" execute command "/team delete %{rand1}%" set {rand2} to a random element of {Teams::*} loop {Team.%{rand2}%::*}: set {DD.Teamstr::%{DDcount}%} to "%{DD.Teamstr::%{DDcount}%}% %loop-value%" execute command "/team delete %{rand2}%" add 1 to {DDcount} subtract 2 from {prevsize} loop {DDcount} times: execute command "/ct%{DD.Teamstr::%loop-number%}%"