12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796 |
- <section id="General">
- <table>
- <tr>
- <th class="command">
- + - * / % = += -= *= /= %= ++ -- <<=
- >>= &= ^= |= || && () < > <= >= == ! !=
- if while break continue elseif else
- </th>
- <th class="desc">work as in any general purpose programming language</th>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>a = 3 * (5 - 1);<br>a++;<br>a <<= 3;</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">label on_error</th>
- <th class="desc">error handling for snuvi scripts</th>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>if the label on_error exists, the parser will continue at this label</td>
- </tr>
- <tr>
- <td class="bold">Variablen</td>
- <td>error_stacktrace<br>error_message<br>error_name<br>error_function</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">for</th>
- <th class="desc">executes the start instruction once, and repeats the block and the per loop function until the loop check is false</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>for(start_instruction; loop_check; per_loop) { } </td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>for(i = 0; i < 5; i++) { print("hi"); }</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">functions</th>
- <th class="desc">functions can be written and have their own scope, global variables can be accessed by using a $</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>function function_name(vars, ...) { } </td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>c = 6;<br>function printStuff(a, b)<br>{<br>print(a, b, $c);<br>}<br>printStuff(4, "Hallo");</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">print</th>
- <th class="desc">prints all arguments connected to the default console</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>print(arg, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">getVar</th>
- <th class="desc">returns the value of a variable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>getVar(variable_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setVar</th>
- <th class="desc">sets the value of a variable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setVar(variable_name_string, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">swap</th>
- <th class="desc">swaps the values of two variables</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>swap(var1, var2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">nothing</th>
- <th class="desc">does nothing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>nothing()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error</th>
- <th class="desc">sets if full stack exceptions are printed to the logger</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">array.new</th>
- <th class="desc">initializes an array with the given size and returns the array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>array.new(size, ...)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>a = array.new(3);<br>a[0] = 2;<br>b = array.new(3, 2)<br>b[0, 0] = 3;</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">array.getSize</th>
- <th class="desc">returns the size of an array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>array.getSize(array)</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>array.new(a[3, 2])<br>array.getSize(a)<br>array.getSize(a[0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.number</th>
- <th class="desc">returns a double parsed from a string or null if not possible</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.number(double_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">wait</th>
- <th class="desc">stops a script until an event is received</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>wait()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">term</th>
- <th class="desc">terminates a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>term()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">goto</th>
- <th class="desc">jumps to a label</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>goto(label)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>the label can either be a string or @label_name, labels can be made by writing @label_name</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sgoto</th>
- <th class="desc">jumps to a label after a specific amount of scheduler ticks</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sgoto(ticks, label)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>don't use sgoto with 1 ticks<br>all scheduled tasks are instantly executed on server stop<br>auto scheduler slows down execution of sgoto</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ignoreGoto</th>
- <th class="desc">jumps to a label if it exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ignoreGoto(label)</td>
- </tr>
- <tr>
- <td class="bold">Alias</td>
- <td>iGoto(label)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gosub</th>
- <th class="desc">jumps to a label and remembers the old position</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gosub(label)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">return</th>
- <th class="desc">returns to the previous execution position returning nothing or a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>return<br>return 5</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">waitfor</th>
- <th class="desc">waits a specific amount of scheduler ticks, no events are received while waiting, sgotos until now won´t be received anymore</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>waitfor(ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">assert</th>
- <th class="desc">throws an exception of the given bool is false</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>assert(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isBool</th>
- <th class="desc">returns true if a value is a boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isBool(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isDouble</th>
- <th class="desc">returns true if a value is a double</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isDouble(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isLong</th>
- <th class="desc">returns true if a value is a long</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isLong(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">class</th>
- <th class="desc">returns the class of any object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>class(object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">usedMemory</th>
- <th class="desc">returns used memory in mega bytes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>usedmemory()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">allocatedMemory</th>
- <th class="desc">returns allocated memory in mega bytes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>allocatedmemory()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">iterator</th>
- <th class="desc">returns an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>iterator(collection / list / set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">hasNext</th>
- <th class="desc">returns true if the iterator has a next entry</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>hasNext(iterator)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">next</th>
- <th class="desc">returns the next entry of an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>next(iterator)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">remove</th>
- <th class="desc">removes the actual entry of an iterator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>remove(iterator)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">modTimer</th>
- <th class="desc">modifies the timer for the auto scheduler</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>modTimer(milliseconds)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>milliseconds as long</td>
- </tr>
- </table>
- </section>
- <section id="Event">
- <table>
- <tr>
- <th class="command">event.load</th>
- <th class="desc">loads an event, a script does not receive non loaded events</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.load(event_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">event.unload</th>
- <th class="desc">unloads an event</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.unload(event_name_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">event.isloaded</th>
- <th class="desc">returns true if the given event is loaded</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.isloaded(event_name_string)</td>
- </tr>
- </table>
- </section>
- <section id="Script">
- <table>
- <tr>
- <th class="command">script.get</th>
- <th class="desc">returns a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.get()<br>script.get(script_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getId</th>
- <th class="desc">returns the id of a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getId(script)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getFromId</th>
- <th class="desc">returns the script with this id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getFromId(script_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getAll</th>
- <th class="desc">returns a list with all active scripts with this name</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getAll(script_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.term</th>
- <th class="desc">terminates a script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.term(script)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.getVar</th>
- <th class="desc">returns the value from a var from script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.getVar(script, var_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.setVar</th>
- <th class="desc">sets the value from a var from script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.setVar(script, var_name, value)</td>
- </tr>
- </table>
- </section>
- <section id="ScriptVar">
- <table>
- <tr>
- <th class="command">getScriptVar</th>
- <th class="desc">returns the value from a scriptvar (scriptvars are script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>getScriptVar(String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setScriptVar</th>
- <th class="desc">sets the value from a scriptvar (scriptvars are script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setScriptVar(String varname, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">delScriptVar</th>
- <th class="desc">deletes a scriptvar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>delScriptVar(String varname)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">clearScriptVars</th>
- <th class="desc">clears all scriptvars</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>clearScriptVars()</td>
- </tr>
- </table>
- </section>
- <section id="Bit-Operations">
- <table>
- <tr>
- <th class="command">bit.set</th>
- <th class="desc">returns a value, where a single bit is set to 1</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.set(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.unset</th>
- <th class="desc">returns a value, where a single bit is set to 0</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.unset(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.get</th>
- <th class="desc">returns a single bit as boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.get(value, bit_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>bit_index should be from 0 to 31</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>true or false depending on the bit</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.leftShift</th>
- <th class="desc"><<</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.leftShift(value, value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the left shifted value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.rightShift</th>
- <th class="desc">>></th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.rightShift(value, value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the right shifted value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.and</th>
- <th class="desc">&</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.and(value, value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the and value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.or</th>
- <th class="desc">|</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.or(value, value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the or value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.xor</th>
- <th class="desc">^</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.xor(value, value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the xor value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bit.invert</th>
- <th class="desc">~</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>bit.invert(value)</td>
- </tr>
- <tr>
- <td class="bold">Returns</td>
- <td>the inverted value</td>
- </tr>
- </table>
- </section>
- <section id="Math">
- <table>
- <tr>
- <th class="command">math.min</th>
- <th class="desc">returns the lower value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.min(value1, value2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.max</th>
- <th class="desc">returns the higher value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.max(value1, value2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.abs</th>
- <th class="desc">returns the absolute value of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.abs(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.pow</th>
- <th class="desc">returns a value to the power of another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.pow(value, power)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.root</th>
- <th class="desc">returns the given root of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.root(value, root)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.sqrt</th>
- <th class="desc">returns the square root a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.sqrt(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.hypot</th>
- <th class="desc">returns sqrt(x² + y²)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.hypot(x, y)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.sin</th>
- <th class="desc">returns the sine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.sin(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.cos</th>
- <th class="desc">returns the cosine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.cos(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.tan</th>
- <th class="desc">returns the tangent of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.tan(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.asin</th>
- <th class="desc">returns the arcsine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.asin(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.acos</th>
- <th class="desc">returns the arccosine of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.acos(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.atan</th>
- <th class="desc">returns the arctangent of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.atan(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.e</th>
- <th class="desc">returns Euler's number</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.e()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.pi</th>
- <th class="desc">returns pi</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.pi()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.ln</th>
- <th class="desc">returns the natural logarithm of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.ln(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.log</th>
- <th class="desc">returns the decadic logarithm of a value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.log(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.random</th>
- <th class="desc">returns a random natural number between both values including both borders</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.random(from, to)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.round</th>
- <th class="desc">returns a value rounded</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.round(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundUp</th>
- <th class="desc">returns a value rounded up</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundUp(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundDown</th>
- <th class="desc">returns a value rounded down</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundDown(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">math.roundComma</th>
- <th class="desc">returns a value rounded to a specific number of decimals</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>math.roundComma(value, number_of_dezimals)</td>
- </tr>
- </table>
- </section>
- <section id="List">
- <table>
- <tr>
- <th class="command">list.new</th>
- <th class="desc">returns a new list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.exists</th>
- <th class="desc">returns true if the given value is a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.add</th>
- <th class="desc">adds an element to a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.add(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.addAll</th>
- <th class="desc">adds all given elements to the list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.addAll(List, element, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.remove</th>
- <th class="desc">removes an element from a list and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.remove(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.removeIndex</th>
- <th class="desc">removes an element from a list at the given index and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.removeIndex(list, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.contains</th>
- <th class="desc">returns true if a list contains a given element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.contains(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getSize</th>
- <th class="desc">returns the size of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getSize(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getIndex</th>
- <th class="desc">returns the element at a given index of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getIndex(list, index)</td>
- </tr>
- <tr>
- <td class="bold">Alias</td>
- <td>list.get(list, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.setIndex</th>
- <th class="desc">sets the element at a given index of a list and returns the old element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.setIndex(list, index, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.getIndexOf</th>
- <th class="desc">returns the index of a given element in a list or -1 if the list does not contain the element</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.getIndexOf(list, element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.clear</th>
- <th class="desc">removes all elements of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.clear(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.sort</th>
- <th class="desc">sorts a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.sort(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.reverse</th>
- <th class="desc">reverses the order of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.reverse(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.shuffle</th>
- <th class="desc">shuffles a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.shuffle(list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">list.iterator (deprecated)</th>
- <th class="desc">returns the iterator of a list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>list.iterator(list)</td>
- </tr>
- </table>
- </section>
- <section id="Map">
- <table>
- <tr>
- <th class="command">map.new</th>
- <th class="desc">returns a new map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.exists</th>
- <th class="desc">returns true if the given value is a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.add</th>
- <th class="desc">adds a key value pair to a map and returns the old value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.add(map, key, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.remove</th>
- <th class="desc">removes a key from a map and returns the old value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.remove(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.contains</th>
- <th class="desc">returns true if a map contains a given key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.contains(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getSize</th>
- <th class="desc">returns the size of a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getSize(map)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.get</th>
- <th class="desc">returns the value associated with a key in a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.get(map, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getOrDefault</th>
- <th class="desc">returns the value associated with a key in a map or the default value if the key is not present</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getOrDefault(map, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.iterator</th>
- <th class="desc">returns the iterator of a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.iterator(map)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getKey</th>
- <th class="desc">returns the key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getKey(iterator_element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.getValue</th>
- <th class="desc">returns the value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.getValue(iterator_element)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.setValue</th>
- <th class="desc">sets the newValue and returns the oldValue</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.setValue(iterator_element, newValue)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">map.clear</th>
- <th class="desc">removes all key value pairs from a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>map.clear(map)</td>
- </tr>
- </table>
- </section>
- <section id="Set">
- <table>
- <tr>
- <th class="command">set.new</th>
- <th class="desc">returns a new set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.new()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.exists</th>
- <th class="desc">returns true if the given value is a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.exists(value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.add</th>
- <th class="desc">adds a key to a set and returns true if the key was added</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.add(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.addAll</th>
- <th class="desc">adds all given keys to a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.addAll(set, key, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.remove</th>
- <th class="desc">removes a key from a set and returns true if the key was removed</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.remove(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.contains</th>
- <th class="desc">returns true if a set contains a given key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.contains(set, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.getSize</th>
- <th class="desc">returns the size of a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.getSize(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.clear</th>
- <th class="desc">removes all keys from a map</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.clear(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.toList</th>
- <th class="desc">returns all keys of a set as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.toList(set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">set.iterator (deprecated)</th>
- <th class="desc">returns the iterator of a set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>set.iterator(set)</td>
- </tr>
- </table>
- </section>
- <section id="Time">
- <table>
- <tr>
- <th class="command">time.new</th>
- <th class="desc">returns a calendar of a given time in milliseconds</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.new(time_millis)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>time_millis are milliseconds passed since 01.01.1970</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMillis</th>
- <th class="desc">returns the current millisecond time</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMillis()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getNanos</th>
- <th class="desc">returns the current nanosecond time of the whole engine</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getNanos()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.from</th>
- <th class="desc">returns the millisecond time of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.from(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.nextDay</th>
- <th class="desc">sets the time of a calendar to the beginning of the next day</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.nextDay(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getYear</th>
- <th class="desc">returns the year of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getYear(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMonth</th>
- <th class="desc">returns the month of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMonth(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getDay</th>
- <th class="desc">returns the day of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getDay(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getHour</th>
- <th class="desc">returns the hours of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getHour(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getMinute</th>
- <th class="desc">returns the minutes of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getMinute(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.getSecond</th>
- <th class="desc">returns the seconds of a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.getSecond(calendar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">time.parse</th>
- <th class="desc">returns a calendar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>time.parse(<a href="https://docs.oracle.com/javase/10/docs/api/java/text/SimpleDateFormat.html" target="_blank">date_format</a>, source_string)</td>
- </tr>
- </table>
- </section>
- <section id="String">
- <table>
- <tr>
- <th class="command">string</th>
- <th class="desc">returns any object as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string(object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.number</th>
- <th class="desc">returns a number as string without unnecessary .0</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.number(number)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.class</th>
- <th class="desc">returns the class of any object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.class(objekt)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.toUpperCase</th>
- <th class="desc">returns a string capitalized</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.toUpperCase(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.toLowerCase</th>
- <th class="desc">returns a string decapitalized</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.toLowerCase(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.split</th>
- <th class="desc">returns a string splitted by a given separator as array </th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.split(separator, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.concat</th>
- <th class="desc">returns one string which connects all given arguments</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.concat(arg, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.startsWith</th>
- <th class="desc">returns true if a string starts with another starting from a given index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.startsWith(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.endsWith</th>
- <th class="desc">returns true if a string ends with another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.endsWith(string, search_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.contains</th>
- <th class="desc">returns true if a string is in another</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.contains(string, search_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.indexOf</th>
- <th class="desc">returns the index of string in another starting from a given index or -1 if not found</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.indexOf(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.lastIndexOf</th>
- <th class="desc">returns the last index of a string in another starting from a given index or -1 if not found</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.lastIndexOf(string, search_text, start_index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.replace</th>
- <th class="desc">returns string where all occurrences in a given string of a given string are replaced with another given string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.replace(string, search_text, swap_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.trim</th>
- <th class="desc">returns a string without leading and trailing whitespaces</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.trim(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.matches</th>
- <th class="desc">returns true if a string matches a regex</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.matches(string, regex)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.charcode</th>
- <th class="desc">returns the character code of an index in a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.charcode(string, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.fromCode</th>
- <th class="desc">returns a string from a character code</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.fromCode(character_code)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.length</th>
- <th class="desc">returns the length of a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.length(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.subString</th>
- <th class="desc">returns a sub string starting at one index and ending at another exclusively</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.subString(string, from_index, to_index)</td>
- </tr>
- </table>
- </section>
- <section id="File">
- <table>
- <tr>
- <th class="command">file.new</th>
- <th class="desc">returns a new file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.new(path)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.exists</th>
- <th class="desc">returns true if a file exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.exists(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.delete</th>
- <th class="desc">removes a file and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.delete(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.getName</th>
- <th class="desc">returns the name of a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.getName(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.getList</th>
- <th class="desc">returns all files in a folder as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.getList(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.read</th>
- <th class="desc">returns all lines in a file as list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.read(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.write</th>
- <th class="desc">writes all entries of a list to a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.write(file, list)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.isFile</th>
- <th class="desc">returns true if a file is a file</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.isFile(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.isDirectory</th>
- <th class="desc">returns true if a file is a directory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.isDirectory(file)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">file.createFolder</th>
- <th class="desc">creates a folder</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>file.createFolder(file)</td>
- </tr>
- </table>
- </section>
- <section id="Config">
- <table>
- <tr>
- <th class="command">config.new</th>
- <th class="desc">returns a new config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.new(path, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.exists</th>
- <th class="desc">returns true if the config exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.exists(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.save</th>
- <th class="desc">saves a config and returns true on success</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.save(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.load</th>
- <th class="desc">loads a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.load(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.delete</th>
- <th class="desc">removes a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.delete(config)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.set</th>
- <th class="desc">sets a key value pair in a config</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.set(config, key, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getBool</th>
- <th class="desc">returns a boolean or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getBool(config, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getDouble</th>
- <th class="desc">returns a double or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getDouble(config, key, default)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">config.getString</th>
- <th class="desc">returns a string or a default value from a config key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.getString(config, key, default)</td>
- </tr>
- </table>
- </section>
|