For example:

–Determine whether it is an adventure free mode

local result=World:isFreeMode()
if result==0 then--if it is adventure free mode
	Chat:sendSystemMsg("Currently in adventure free mode!")
else--if not
	Chat:sendSystemMsg("This is not the adventure free mode!")
end

If you have any questions about Developer Tools, feel free to join our official discord server Mini World Global DEV discord