12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624 |
- <section id="Event-List">
- <table>
- <tr>
- <th class="command"></th>
- <th class="desc">footnote</th>
- </tr>
- <tr>
- <td class="bold">*</td>
- <td>writable</td>
- </tr>
- <tr>
- <td class="bold">**</td>
- <td>can be null</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_change_block</th>
- <th class="desc">an entity changes a block</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>block<br>change_data as blockdata for the new state<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_damage</th>
- <th class="desc">an entity gets damage</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>damage_source<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html" target="_blank">cause</a> as string<br>**damager_block<br>**damager_entity<br>damage<br>raw_damage<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_heal</th>
- <th class="desc">an entity gets healed</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>*heal<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/EntityRegainHealthEvent.RegainReason.html" target="_blank">cause</a> as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_death</th>
- <th class="desc">a living_entity dies</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>living_entity<br>damage_source<br>*drops as list of itemstacks<br>*experience<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_drop</th>
- <th class="desc">a destroyed block drops something</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>block<br>old_material<br>*drops as list with ItemEntities</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_click</th>
- <th class="desc">an entity gets right_clicked</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>entity<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
- </tr>
- </table>
- </table>
- <table>
- <tr>
- <th class="command">living_spawn</th>
- <th class="desc">a living entity spawns</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>living_entity<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html" target="_blank">cause</a> as string<br>location<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_spawn</th>
- <th class="desc">an entity spawns</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>location<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_remove</th>
- <th class="desc">an entity is removed from a world</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_tame</th>
- <th class="desc">a living entity gets tamed</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>living_entity<br>tamer<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_mount</th>
- <th class="desc">an entity mounts another entity</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>mount as entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity_dismount</th>
- <th class="desc">an entity dismounts another entity</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>mount as entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_login</th>
- <th class="desc">a player tries to connect to the server</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>result</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_join</th>
- <th class="desc">a player joins the server</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>*message as text</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>message = null means no message</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_quit</th>
- <th class="desc">a player leaves the server</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>*message as text</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>message = null means no message</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_pre_respawn</th>
- <th class="desc">a player will respawn</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>devs can set the spawn-location on this event</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_post_respawn</th>
- <th class="desc">a player has respawned</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>devs can refill the inventory on this event</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_toggle_sneak</th>
- <th class="desc">a player toggles sneak</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>sneak as boolean<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_drop</th>
- <th class="desc">a player drops an item</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>item_entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living_pickup</th>
- <th class="desc">a living entity picks up an item</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>living_entity<br>item_entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_move</th>
- <th class="desc">a player moves in a before defined area</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>id</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_break</th>
- <th class="desc">a block is broken by a player</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>block<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_place</th>
- <th class="desc">a block is placed by a player</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>block<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_click</th>
- <th class="desc">a block gets clicked by a player</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>**block<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/block/Action.html" target="_blank">action</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_burn</th>
- <th class="desc">a block is burned</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>block<br>block_source<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_spread</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BlockSpreadEvent.html" target="_blank">Paper API#BlockSpreadEvent</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>block<br>block_source<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_fade</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BlockFadeEvent.html" target="_blank">Paper API#BlockFadeEvent</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>block<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bucket_use</th>
- <th class="desc">a bucket is filled / vacated</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>block<br>bucket as material<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv_click</th>
- <th class="desc">a slot in an container gets clicked</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>inv<br>**inv_clicked<br>inv_title as text<br>inv_slot as double<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/InventoryAction.html" target="_blank">action</a> as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">snuvi_click</th>
- <th class="desc">a slot in an custom inventory gets clicked</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>inv<br>inv_title as text<br>inv_slot as double<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/ClickType.html" target="_blank">click</a> as string<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/inventory/InventoryAction.html" target="_blank">action</a> as string</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Custom inventories are not script-across.</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv_close</th>
- <th class="desc">an inventory gets closed</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>inv<br>inv_title as text</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item_consume</th>
- <th class="desc">an item gets consumed by a player</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>item<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pre_craft</th>
- <th class="desc">a player crafts an item</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>players as list with players<br>*item<br>*inv</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>item can be set to null</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">craft</th>
- <th class="desc">a player takes the result item out of craft inventory</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>item<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_change_world</th>
- <th class="desc">a player changes the world</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>from world as string</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_teleport</th>
- <th class="desc">a player teleports</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>from as location<br>to as location<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/event/player/PlayerTeleportEvent.TeleportCause.html" target="_blank">cause</a> as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">fishing</th>
- <th class="desc">a player fishes something</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>**entity<br>*experience<br>hook as entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command</th>
- <th class="desc">a player uses a non custom-command</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>command as string<br>permission as string<br>command_class as string<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">custom_command</th>
- <th class="desc">something uses a custom-command</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>sender<br>command as string<br>args as list<br>string_args as list with strings only</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>sender can be a player, console...<br></td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">chat</th>
- <th class="desc">a player writes into chat</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>*message as text<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">projectile_hit</th>
- <th class="desc">a thrown projectile hits a block or an entity</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>**shooter<br>projectile<br>**entity_hit<br>**block_hit<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">arm_swing</th>
- <th class="desc">a player makes an arm_swing (might be a leftclick into air)</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">hand</a><br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">explosion</th>
- <th class="desc">explosions are cancelled on default</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>entity<br>*fire as boolean<br>*radius<br>*cancel | true</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">missing_command</th>
- <th class="desc">a sender uses a non-existing command</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>sender<br>command</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">missing_perm</th>
- <th class="desc">a sender has no permissions for a used command</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>sender<br>command<br>perm</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_data_tick</th>
- <th class="desc">thrown if a timer from data.setTimer reached 0</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>var</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_elytra_start</th>
- <th class="desc">thrown if a player starts using an elytra</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_elytra_stop</th>
- <th class="desc">thrown if a player stops using an elytra</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_item_held</th>
- <th class="desc">a player changes their hotbar slot</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>from as double<br>to as double<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_swap_hand_items</th>
- <th class="desc">a player swaps their items in their hands</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_jump</th>
- <th class="desc">a player jumps</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world_load</th>
- <th class="desc">a world gets loaded</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>world</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vote</th>
- <th class="desc">a vote gets received</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>from as string<br>name as string<br>ip as string<br>timestamp as double</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vehicle_enter</th>
- <th class="desc">an entity enters a vehicle</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>vehicle<br>entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">vehicle_exit</th>
- <th class="desc">an living_entity exits a vehicle</th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>vehicle<br>living_entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block_shear</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/io/papermc/paper/event/block/PlayerShearBlockEvent.html" target="_blank">a player uses shears on a block</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>block<br>hand<br>*drops<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">bell_ring</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/org/bukkit/event/block/BellRingEvent.html" target="_blank">a bell is rung</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>block<br>**entity<br>direction<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">spectation_start</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerStartSpectatingEntityEvent.html" target="_blank">a player starts spectating</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">spectation_stop</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerStopSpectatingEntityEvent.html" target="_blank">a player stops spectating</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>entity<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player_pickup_exp</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerPickupExperienceEvent.html" target="_blank">a player picks up XP</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>*cancel</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">elytra_boost</th>
- <th class="desc"><a href="https://jd.papermc.io/paper/1.21.4/com/destroystokyo/paper/event/player/PlayerElytraBoostEvent.html" target="_blank">a player boosts using elytra</a></th>
- </tr>
- <tr>
- <td class="bold">Variables</td>
- <td>player<br>hand<br>firework as entity<br>*consume as boolean<br>*cancel</td>
- </tr>
- </table>
- </section>
- <section id="Event">
- <table>
- <tr>
- <th class="command">event.addMoveData</th>
- <th class="desc">creates an area for player_move events and returns the id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.addMoveData(location1, location2, cooldown, livingtime, [uuid / uuid_string / player])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- cooldown: -1 terminated after a single trigger<br>
- cooldown: > 0 clock rate in ticks, no termination<br>
- livingtime: -1 area lives forever<br>
- livingtime: > 0 stays amount of ticks alive<br>
- uuid / uuid_string / player: event only triggers for this player
- </td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>on script termination this area will be removed</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command"event.removeMoveData</th>
- <th class="desc">removes an area for player_move events by id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>event.removeMoveData(id)</td>
- </tr>
- </table>
- </section>
- <section id="Ban">
- <table>
- <tr>
- <th class="command">ban.add</th>
- <th class="desc">bans a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.add(player_name, reason, banner, [end_date])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- reason as string<br>
- banner as string (the person who bans, write what you want)<br>
- end_date as calendar object
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.remove</th>
- <th class="desc">unbans a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.remove(player_uuid)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.addIp</th>
- <th class="desc">bans an IP from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.addIp(ip, reason, banner, [end_date])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- reason as string<br>
- banner as string (the person who bans, write what you want)<br>
- end_date as calendar object
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.removeIp</th>
- <th class="desc">unbans an IP from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.removeIp(ip)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">ban.kick</th>
- <th class="desc">kicks a player from the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>ban.kick(player, reason)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>reason as text</td>
- </tr>
- </table>
- </section>
- <section id="Block">
- <table>
- <tr>
- <th class="command">block.setData</th>
- <th class="desc">set a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setData(block, blockdata, [boolean | false])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true places with block update</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setMaterial</th>
- <th class="desc">set a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setMaterial(block, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a>, [boolean | false])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true places with block update</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.clone</th>
- <th class="desc">clone a block to a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.clone(block, location, [boolean | false])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true places with block update</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setSign</th>
- <th class="desc">set text on a sign</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setSign(block, side, row, text)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getSign</th>
- <th class="desc">returns the text of a sign from a specific row</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getSign(block, side, row)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>row from 0 to 3<br>side: "FRONT"/"BACK"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.signSetWaxed</th>
- <th class="desc">wax/unwax a sign</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.signSetWaxed(block, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.get</th>
- <th class="desc">returns a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.get(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getData</th>
- <th class="desc">returns the blockdata of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getData(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getInventory</th>
- <th class="desc">returns the inventory of a block or null if it is not a container</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getInventory(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getType</th>
- <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a> of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getType(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getLocation</th>
- <th class="desc">returns the location of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getLocation(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setOpen</th>
- <th class="desc">set the open property for a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setOpen(block, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isOpen</th>
- <th class="desc">returns true if the block is open</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isOpen(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getTag</th>
- <th class="desc">returns a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getTag(String tag_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.hasTag</th>
- <th class="desc">returns true if a block has a tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.hasTag(block, tag)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.break</th>
- <th class="desc">breaks a block and drops the item</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.break(block, [entity])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isOpenable</th>
- <th class="desc">returns true if a block is openable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isOpenable(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isDoor</th>
- <th class="desc">returns true if a block is a door</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isDoor(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setDoorHinge</th>
- <th class="desc">sets the door hinge of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setDoorHinge(block, door_hinge_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getDoorHinge</th>
- <th class="desc">returns the door hinge of a block as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getDoorHinge(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setBisectedHalf</th>
- <th class="desc">sets the bisected half of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setBisectedHalf(block, bisected_half_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getBisectedHalf</th>
- <th class="desc">returns the bisected half of a block as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getBisectedHalf(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isBisected</th>
- <th class="desc">returns true if a block is bisected</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isBisected(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setDirectionalFace</th>
- <th class="desc">sets the directional face of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setDirectionalFace(block, directional_face_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getDirectionalFace</th>
- <th class="desc">returns the directional face of a block as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getDirectionalFace(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.getDirectionalFaces</th>
- <th class="desc">returns a list with directional faces as string of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.getDirectionalFaces(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isDirectional</th>
- <th class="desc">returns true if a block is directional</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isDirectional(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setPersistent</th>
- <th class="desc">sets the persistence of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setPersistent(block, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isPersistent</th>
- <th class="desc">returns true if a block is persistent</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isPersistent(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isLeaves</th>
- <th class="desc">returns true if a block is a leaf</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isLeaves(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.canHaveWater</th>
- <th class="desc">returns true if a block can have water</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.canHaveWater(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.isWaterLogged</th>
- <th class="desc">returns true if a block is waterlogged</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.isWaterLogged(block)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">block.setWaterLogged</th>
- <th class="desc">set the waterlogged property of a block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>block.setWaterLogged(block, boolean)</td>
- </tr>
- </table>
- </section>
- <section id="Databank">
- <table>
- <tr>
- <th class="command">databank.prepare</th>
- <th class="desc">returns the prepared statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.prepare(sql-query, [boolean autoclose | true])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setInt</th>
- <th class="desc">sets an int in a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setInt(statement, index, int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setDouble</th>
- <th class="desc">sets a double in a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setDouble(statement, index, double)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setLong</th>
- <th class="desc">sets a long in a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setLong(statement, index, long)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setString</th>
- <th class="desc">sets a string in a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setString(statement, index, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.setBool</th>
- <th class="desc">sets a boolean in a statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.setBool(statement, index, boolean)</td>
- </tr>
- </table>
-
- <table>
- <tr>
- <th class="command">databank.getInt</th>
- <th class="desc">returns an int from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getInt(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getDouble</th>
- <th class="desc">returns a double from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getDouble(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getLong</th>
- <th class="desc">returns a long from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getLong(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getString</th>
- <th class="desc">returns a string from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getString(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.getBool</th>
- <th class="desc">returns a boolean from a result set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.getBool(result-set, index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.execute</th>
- <th class="desc">returns a result-set after executing a reading statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.execute(statement)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.workerExecute</th>
- <th class="desc">executes a writing statement</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.workerExecute(statement)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.next</th>
- <th class="desc">returns true and jumps to the next entry if the result-set has a next entry</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.next(result-set)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">databank.close</th>
- <th class="desc">manual closing of a result-set</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>databank.close(result-set)</td>
- </tr>
- </table>
- </section>
- <section id="Citizen">
- <table>
- <tr>
- <th class="command">citizen.spawn</th>
- <th class="desc">returns the spawned citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.spawn(location, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.despawn</th>
- <th class="desc">despawns a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.despawn(citizen)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.destroy</th>
- <th class="desc">destroys a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.destroy(citizen)</td>
- </tr>
- </table>
- <table>
- <table>
- <tr>
- <th class="command">citizen.setSkin</th>
- <th class="desc">sets the skin of a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.setSkin(citizen, <a href="https://mineskin.org/gallery" target="_blank">texture_value</a>, <a href="https://mineskin.org/gallery" target="_blank">texture_signature</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.setName</th>
- <th class="desc">sets the name of a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.setName(citizen, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.showNameplate</th>
- <th class="desc">sets the nameplate visibility of a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.showNameplate(citizen, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.setEquip</th>
- <th class="desc">equips a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.setEquip(citizen, <a href="https://jd.citizensnpcs.co/net/citizensnpcs/api/trait/trait/Equipment.EquipmentSlot.html" target="_blank">slot_name</a>, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.getName</th>
- <th class="desc">returns the name as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.getName(citizen)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">citizen.lookclose</th>
- <th class="desc">makes a citizen look at nearby players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>citizen.lookclose(citizen)</td>
- </tr>
- </table>
- </section>
- <section id="Config">
- <table>
- <tr>
- <th class="command">config.saveAsync</th>
- <th class="desc">saves a config asynchronous</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>config.saveAsync(config)</td>
- </tr>
- </table>
- </section>
- <section id="Damage">
- <table>
- <tr>
- <th class="command">damage.get</th>
- <th class="desc">returns a damage_source</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.get(damage_name)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- damage_name:
- inFire, lightningBolt, onFire, lava, hotFloor, inWall, cramming, drown, starve, cactus, fall, flyIntoWall, outOfWorld, generic, magic, wither, anvil, fallingBlock, dragonBreath, dryout, sweetBerryBush, freeze, fallingStalactite, stalagmite, outsideBorder, genericKill
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getType</th>
- <th class="desc">returns the type of a damage_source as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getType(damage_source)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getImmediateSource</th>
- <th class="desc">returns the direct damager entity of a damage_source</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getImmediateSource(damage_source)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.getTrueSource</th>
- <th class="desc">returns the indirect damager entity of a damage_source</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.getTrueSource(damage_source)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isDifficultyscaled</th>
- <th class="desc">returns true if the damage_source will have its damageamount scaled based on the current difficulty</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isDifficultyscaled(damage_source)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">damage.isIndirect</th>
- <th class="desc">returns true if the damage_source is indirect</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>damage.isIndirect(damage_source)</td>
- </tr>
- </table>
- </section>
- <section id="Data">
- <table>
- <tr>
- <th class="command">data.set</th>
- <th class="desc">sets data for a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.set(player, key, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.get</th>
- <th class="desc">returns data from a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.get(player, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.setTimer</th>
- <th class="desc">sets timed data for a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.setTimer(player, key, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>set ticks to -1 to delete the timer<br>when the timer expires the event player_data_tick is thrown</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.getTimer</th>
- <th class="desc">returns the remaining ticks of timed data (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.getTimer(player, key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">data.clear</th>
- <th class="desc">deletes all data from a player (script-across)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>data.clear(player)</td>
- </tr>
- </table>
- </section>
- <section id="Gamerule">
- <table>
- <tr>
- <th class="command">gamerule.getKey</th>
- <th class="desc">returns a gamerule_key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getKey(gamerule_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.getValue</th>
- <th class="desc">return a gamerule_value from a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.getValue(world, gamerule_key)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.setBool</th>
- <th class="desc">sets a gamerule_value</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.setBool(world, gamerule_value, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">gamerule.setInt</th>
- <th class="desc">sets a gamerule_key</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>gamerule.setInt(world, gamerule_key, value)</td>
- </tr>
- </table>
- </table>
- </section>
- <section id="General">
- <table>
- <tr>
- <th class="command">msg</th>
- <th class="desc">sends a message</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>msg(receiver, text)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isPlayer</th>
- <th class="desc">returns true if the argument is a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isPlayer(anything)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isLiving</th>
- <th class="desc">returns true if the argument is a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isLiving(anything)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">isCitizen</th>
- <th class="desc">returns true if the argument is a citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>isCitizen(anything)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">setMOTD</th>
- <th class="desc">sets the message of the day in the server list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>setMOTD(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">getMOTD</th>
- <th class="desc">returns the message of the day as text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>getMOTD()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">stop</th>
- <th class="desc">stops the server</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>stop()</td>
- </tr>
- </table>
- </section>
- <section id="Material">
- <table>
- <tr>
- <th class="command">material.get</th>
- <th class="desc">returns a material</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.get(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material_name</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.getAll</th>
- <th class="desc">returns an array with all materials</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.getAll()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.isItem</th>
- <th class="desc">returns true if a material is an holdable item</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.isItem(material)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.isBlock</th>
- <th class="desc">returns true if a material is an placeable block</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.isBlock(material)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.isSolid</th>
- <th class="desc">returns true if a material is a block and solid (can be built upon)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.isSolid(material)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.setCooldown</th>
- <th class="desc">sets the cooldown of a material of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.setCooldown(material, player, ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">material.getSlot</th>
- <th class="desc">returns the slot to use for an item attribute</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>material.getSlot(material)</td>
- </tr>
- </table>
- </section>
- <section id="Item">
- <table>
- <tr>
- <th class="command">item.new</th>
- <th class="desc">return an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.new(material, [amount | 1])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.drop</th>
- <th class="desc">drops an itemstack at a location and returns the item_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.drop(itemstack, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getType</th>
- <th class="desc">returns the <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Material.html" target="_blank">material</a> of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getType(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getMaxAmount</th>
- <th class="desc">returns the maximum size of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getMaxAmount(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getAmount</th>
- <th class="desc">returns the size of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getAmount(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setAmount</th>
- <th class="desc">sets the size of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setAmount(itemstack, size)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hasName</th>
- <th class="desc">returns true if the itemstack has a modified name</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hasName(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getName</th>
- <th class="desc">returns the name of an itemstack as text or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getName(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setName</th>
- <th class="desc">sets the name of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setName(itemstack, text_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getLore</th>
- <th class="desc">returns a list of texts with all lores of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getLore(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setLore</th>
- <th class="desc">sets the lore of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setLore(itemstack, list)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>list of texts</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addAttribute</th>
- <th class="desc">adds an attribute to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addAttribute(itemstack, <a href="https://minecraft.fandom.com/wiki/Attribute#Attributes" target="_blank">attribute</a>, slot, double, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/attribute/AttributeModifier.Operation.html" target="_blank">operation</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.clearAttributes</th>
- <th class="desc">removes all custom attributes from an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.clearAttributes(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hasAttributes</th>
- <th class="desc">returns true if an itemstack has attributes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hasAttributes(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addDefaultTags</th>
- <th class="desc">adds the default attributes to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addDefaultTags(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addFlag</th>
- <th class="desc">adds a flag to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.removeFlag</th>
- <th class="desc">removes a flag from an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.removeFlag(itemstack, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/ItemFlag.html" target="_blank">flag</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.addPotion</th>
- <th class="desc">adds a potion effect to an item</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.addPotion(itemstack, <a href="https://minecraft.fandom.com/wiki/Potion#ID" target="_blank">potion_name</a>, duration, power)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.clone</th>
- <th class="desc">returns a copy of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.clone(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getTag</th>
- <th class="desc">returns an item tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getTag(String tag_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.hasTag</th>
- <th class="desc">returns true if an itemstack has an item tag</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.hasTag(itemstack, tag)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.isDamageable</th>
- <th class="desc">returns true if the itemstack is damageable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.isDamageable(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getMaxDamage</th>
- <th class="desc">returns the maximum damage the itemstack can get</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getMaxDamage(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.setDamage</th>
- <th class="desc">sets the damage of the itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.setDamage(itemstack, amount)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.getDamage</th>
- <th class="desc">returns the damage of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.getDamage(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.get</th>
- <th class="desc">returns the itemstack of an item_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.get(item_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.set</th>
- <th class="desc">sets the itemstack of an item_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.set(item_entity, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">item.entity.setPickupDelay</th>
- <th class="desc">sets the pickupdelay for an item_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>item.entity.setPickupDelay(item_entity, ticks)</td>
- </tr>
- </table>
- </section>
- <section id="Enchantment">
- <table>
- <tr>
- <th class="command">enchantment.get</th>
- <th class="desc">returns an enchantment</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.get(enchantment_string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td><a href="https://minecraft-de.gamepedia.com/Verzauberung#Verzauberungen" target="_blank">Minecraft Wiki Verzauberungen</a> (ID-Name verwenden)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.getMaxLevel</th>
- <th class="desc">returns the maximum level of an enchantment</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.getMaxLevel(enchantment)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.add</th>
- <th class="desc">adds an enchantment to an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.add(enchantment, itemstack, level)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.getLevel</th>
- <th class="desc">returns the level of an enchantment an itemstack has</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.getLevel(enchantment, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.readFromItem</th>
- <th class="desc">returns a map with all enchantments of an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.readFromItem(itemstack)</td>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment as key, level as value</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">enchantment.writeToItem</th>
- <th class="desc">writes all enchantments from the map on the itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>enchantment.writeToItem(map, itemstack)</td>
- </tr>
- </table>
- </section>
- <section id="Debug">
- <table>
- <tr>
- <th class="command">debug.clear</th>
- <th class="desc">clears all cached debug messages</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.getSize</th>
- <th class="desc">returns the amount of all cached debug messages</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.getSize()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.getIndex</th>
- <th class="desc">returns the debug message from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.getIndex(index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.setConsolePrint</th>
- <th class="desc">true prints snuvi debug messages on console (not stack traces)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.setConsolePrint(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">debug.getIndexTime</th>
- <th class="desc">returns the time of a debug message from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>debug.getIndexTime(index)</td>
- </tr>
- </table>
- </section>
- <section id="Error">
- <table>
- <tr>
- <th class="command">error.clear</th>
- <th class="desc">clears all cached errors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.getSize</th>
- <th class="desc">returns the amount of all cached errors</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.getSize()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.getIndex</th>
- <th class="desc">returns the error from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.getIndex(index)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.setConsolePrint</th>
- <th class="desc">true prints snuvi errors on console (not stack traces)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.setConsolePrint(boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">error.getIndexTime</th>
- <th class="desc">returns the time of an error from an index</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>error.getIndexTime(index)</td>
- </tr>
- </table>
- </section>
- <section id="Location">
- <table>
- <tr>
- <th class="command">loc.new</th>
- <th class="desc">creates a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.new(world, x, y, z)<br>loc.new(world, x, y, z, yaw, pitch)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getX</th>
- <th class="desc">returns the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getX(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setX</th>
- <th class="desc">sets the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setX(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addX</th>
- <th class="desc">adds the value to the x coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addX(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getBlockX</th>
- <th class="desc">returns the x block coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getBlockX(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getY</th>
- <th class="desc">returns the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getY(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setY</th>
- <th class="desc">sets the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setY(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addY</th>
- <th class="desc">adds the value to the y coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addY(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getBlockY</th>
- <th class="desc">returns the y block coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getBlockY(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getZ</th>
- <th class="desc">returns the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getZ(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setZ</th>
- <th class="desc">sets the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setZ(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.addZ</th>
- <th class="desc">adds the value to the z coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.addZ(location, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getBlockZ</th>
- <th class="desc">returns the z block coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getBlockZ(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setYaw</th>
- <th class="desc">sets the yaw of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setYaw(location, Yaw)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getYaw</th>
- <th class="desc">returns the yaw of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getYaw(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.setPitch</th>
- <th class="desc">sets the pitch of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.setPitch(location, Pitch)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getPitch</th>
- <th class="desc">returns the pitch of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getPitch(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.getWorld</th>
- <th class="desc">returns the world of a location as object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.getWorld(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.distance</th>
- <th class="desc">returns the difference between two locations</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.distance(location1, location2)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>there is an error if the two locations have not the same world</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.isBetween</th>
- <th class="desc">returns true if the location is between two other locations</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.isBetween(location, location1, location2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.mod</th>
- <th class="desc">returns a modified copy of the location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.mod(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.add</th>
- <th class="desc">modifies the original location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.add(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.set</th>
- <th class="desc">modifies the original location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.set(location, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.sort</th>
- <th class="desc">sort in lowest and highest coordinates</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.sort(location1, location2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.iterator</th>
- <th class="desc">returns the iterator for the area</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.iterator(world, x1, y1, z1, x2, y2, z2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">loc.explode</th>
- <th class="desc">makes an explosion at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>loc.explode(location, entity, radius, fire_bool, block_damage_bool)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>entity can be null</td>
- </tr>
- </table>
- </section>
- <section id="Read">
- <table>
- <tr>
- <th class="command">read.player</th>
- <th class="desc">returns a player or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.player(player_name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.item</th>
- <th class="desc">returns an itemstack or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.item(nbt_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.uuid</th>
- <th class="desc">returns a uuid or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.uuid(uuid_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.slot</th>
- <th class="desc">returns a slot or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.slot(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot_name</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">read.blockData</th>
- <th class="desc">returns blockdata or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>read.blockData(blockdata_string)</td>
- </tr>
- </table>
- </section>
- <section id="String">
- <table>
- <tr>
- <th class="command">string.item</th>
- <th class="desc">returns an nbt-tag from an itemstack as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.item(itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.entity</th>
- <th class="desc">returns a serialized entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.entity(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.text</th>
- <th class="desc">returns a text converted to a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.text(text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">string.blockData</th>
- <th class="desc">returns blockdata converted to a string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>string.blockData(blockdata)</td>
- </tr>
- </table>
- </section>
- <section id="Text">
- <table>
- <tr>
- <th class="command">text.new</th>
- <th class="desc">returns a text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.new(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.click</th>
- <th class="desc">returns a clickable text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.click(show_text, execute_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.hover</th>
- <th class="desc">returns a hoverable text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.hover(show_text, hover_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.link</th>
- <th class="desc">returns a clickable text for links</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.link(text, link_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.clipBoard</th>
- <th class="desc">returns a clickable text to copy a string into the clipboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.clipBoard(text, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.merge</th>
- <th class="desc">returns merged texts</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.merge(text, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.item</th>
- <th class="desc">returns a hoverable itemstack text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.item(show_text, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.suggest</th>
- <th class="desc">returns a clickable text for chat/command line insertion</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.suggest(show_text, suggest_text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">text.color</th>
- <th class="desc">returns rgb colored text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>text.color(text, red, green, blue)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>red green blue from 0 to 255</td>
- </tr>
- </table>
- </section>
- <section id="Plot">
- <table>
- <tr>
- <th class="command">plot.add</th>
- <th class="desc">returns the created plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.add(location1, location2, [plot_id])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.remove</th>
- <th class="desc">removes a plot from a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.remove(plot, world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getId</th>
- <th class="desc">returns the plot_id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getId(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.setName</th>
- <th class="desc">sets the name of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.setName(plot, name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getName</th>
- <th class="desc">returns the name of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getName(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.get</th>
- <th class="desc">returns a list with all plots at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.get(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinX</th>
- <th class="desc">returns the lowest x coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinX(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinY</th>
- <th class="desc">returns the lowest y coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinY(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMinZ</th>
- <th class="desc">returns the lowest z coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMinZ(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxX</th>
- <th class="desc">returns the lowest x coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxX(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxY</th>
- <th class="desc">returns the lowest y coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxY(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getMaxZ</th>
- <th class="desc">returns the lowest z coordinate of a plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getMaxZ(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.intersecting</th>
- <th class="desc">returns a list with all intersecting plots</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.intersecting(world, x1, y1, z1, x2, y2, z2)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.setFlags</th>
- <th class="desc">sets all flags to the boolean</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.setFlags(plot, flags, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getFlags</th>
- <th class="desc">returns all flags as double</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getFlags(plot)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.hasFlags</th>
- <th class="desc">returns true if all flags existing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.hasFlags(plot, flags)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.getOwners</th>
- <th class="desc">returns a list with all owners as uuid</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.getOwners(plot)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>list can be modified</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.check</th>
- <th class="desc">returns true if the player is owner of any plot from that location OR if any plot contains all given flags. returns empty if there is no plot</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.check(location, player, Int flags, Boolean empty)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>player can be null<br>flags: 0 if not desired<br>1 PLACE_FLAG<br>2 BREAK_FLAG<br>4 BUCKET_FLAG<br>8 HIT_AMBIENT_FLAG<br>16 BLOCK_INTERACT_FLAG<br>32 ENTITY_INTERACT_FLAG</td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>
- plot.check(loc, null, 1, false) ==> true if place_flag existing<br>
- plot.check(loc, null, 2, false) ==> true if break_flag existing<br>
- plot.check(loc, null, 3, false) ==> true if break_flag and place_flag existing<br>
- plot.check(loc, player, 0, false) ==> true if player is owner<br>
- plot.check(loc, player, 0, true) ==> true if player is owner or if there is no plot
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.iterator</th>
- <th class="desc">returns the iterator for the plots in a world [for a player]</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.iterator(world, [uuid])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.addBlock</th>
- <th class="desc">makes a block public</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.addBlock(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.removeBlock</th>
- <th class="desc">makes a block non-public</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.removeBlock(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.hasBlock</th>
- <th class="desc">returns true if a block is public</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.hasBlock(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.blockIterator</th>
- <th class="desc">returns the iterator for protected blocks in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.blockIterator(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.position.getX</th>
- <th class="desc">returns the x coordinate of a position</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.position.getX(position)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.position.getY</th>
- <th class="desc">returns the y coordinate of a position</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.position.getY(position)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.position.getZ</th>
- <th class="desc">returns the z coordinate of a position</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.position.getZ(position)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.savePlots</th>
- <th class="desc">saves all plot changes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.savePlots(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">plot.saveBlocks</th>
- <th class="desc">saves all block changes</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>plot.saveBlocks(world)</td>
- </tr>
- </table>
- </section>
- <section id="Table">
- <table>
- <tr>
- <th class="command">table.new</th>
- <th class="desc">returns a table object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.new(color, width, width, width, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getStart</th>
- <th class="desc">returns the head of a table</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getStart(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getMiddle</th>
- <th class="desc">returns the middle of a table</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getMiddle(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.getEnd</th>
- <th class="desc">returns the end of a table</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.getEnd(table)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.get</th>
- <th class="desc">returns a line of a table</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.get(table, args...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.setSize</th>
- <th class="desc">defines the pixel size of a character</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.setSize("character", pixel_int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.setEmpty1</th>
- <th class="desc">defines the 1 pixel empty character</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.setEmpty1(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.setEmpty2</th>
- <th class="desc">defines the 2 pixel empty character</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.setEmpty2(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">table.setEmpty4</th>
- <th class="desc">defines the 4 pixel empty character</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>table.setEmpty4(string)</td>
- </tr>
- </table>
- </section>
- <section id="Command">
- <table>
- <tr>
- <th class="command">command.add</th>
- <th class="desc">registers a custom command</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.add(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.remove</th>
- <th class="desc">removes a custom command</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.remove(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.clear</th>
- <th class="desc">removes all custom commands</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.clear()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.exists</th>
- <th class="desc">returns true if a custom command exists</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.exists(string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelp</th>
- <th class="desc">returns a help-object</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelp(string, perm)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpLiteral</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpLiteral(string, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpBool</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpBool(string, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpDouble</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpDouble(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpFloat</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpFloat(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpInt</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpInt(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpLong</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpLong(string, min, max, [perm])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpString</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpString(string, boolean, [perm])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>boolean true means greedy</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.newHelpSpecial</th>
- <th class="desc">returns a help argument</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.newHelpSpecial(type, string, [perm])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>type = "Item", "Particle", "Potion", "Sound", "Enchantment", "Player"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.registerHelp</th>
- <th class="desc">registers a command-help</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.registerHelp(help-object)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">command.addHelpArgument</th>
- <th class="desc">adds a help argument to a help</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>command.addHelpArgument(help, helpArgument)</td>
- </tr>
- </table>
- </section>
- <section id="Scoreboard">
- <table>
- <tr>
- <th class="command">sb.add</th>
- <th class="desc">adds text to the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.add(player, unique_index, string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index from 1 to 99</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>vanilla: maximum 12 rows</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.remove</th>
- <th class="desc">removes a row from the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.remove(player, unique_index)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index as number from 1 to 99</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.addRaw</th>
- <th class="desc">adds text to the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.addRaw(player, index, unique_string)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>index from 1 to 99</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>vanilla: maximum 12 rows</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.removeRaw</th>
- <th class="desc">removes a row from the scoreboard</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.removeRaw(player, unique_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.setTitle</th>
- <th class="desc">sets a scoreboard title</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.setTitle(player, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sb.clear</th>
- <th class="desc">clears the scoreboard of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sb.clear(player)</td>
- </tr>
- </table>
- </section>
- <section id="Script">
- <table>
- <tr>
- <th class="command">script.start</th>
- <th class="desc">connects all scripts, starts them as one script and returns the script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.start(scriptpath1, scriptpath2, ...)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.startNamed</th>
- <th class="desc">connects all scripts, starts them as one script and returns the script</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.startNamed(custom_name, scriptpath1, scriptpath2, ...)</td>
- </tr>
- <td class="bold">Info</td>
- <td>named scripts can be selected with script.get by their custom_name</td>
- <tr>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">script.callEvent</th>
- <th class="desc">calls an event</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>script.callEvent(event, [script])</td>
- </tr>
- </table>
- </section>
- <section id="Title">
- <table>
- <tr>
- <th class="command">title.send</th>
- <th class="desc">shows a player a title (and subtitle if set)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.send(player, title, [subtitle], [fadeIn | 20], [stay | 60], [fadeOut | 20])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">title.remove</th>
- <th class="desc">removes the shown title</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>title.remove(player)</td>
- </tr>
- </table>
- </section>
- <section id="Permission">
- <table>
- <tr>
- <th class="command">perm.clear</th>
- <th class="desc">removes all permissions from a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.clear(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.add</th>
- <th class="desc">adds a permission to a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.add(perm, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.remove</th>
- <th class="desc">removes a permission from a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.remove(perm, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.has</th>
- <th class="desc">returns true if a player has the permission</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.has(perm, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">perm.update</th>
- <th class="desc">updates the permissions of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>perm.update(player)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>call this after adding all player permissions</td>
- </tr>
- </table>
- </section>
- <section id="Player">
- <table>
- <tr>
- <th class="command">players.toList</th>
- <th class="desc">returns a list with all players in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.toList(World)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">players.near</th>
- <th class="desc">returns a list with all players within a radius of a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.near(location, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">players.getAmount</th>
- <th class="desc">returns the number of online players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>players.getAmount()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getHead</th>
- <th class="desc">returns the head of a player as an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getHead(uuid, name)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>uuid and(!) name of the same(!) player</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getNearest</th>
- <th class="desc">returns the next player to a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getNearest(location)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>searches in a radius of 10 blocks</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setDisplayName</th>
- <th class="desc">sets the name of a player in the tab list</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setDisplayName(player, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.action</th>
- <th class="desc">shows a message in the action bar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.action(receiver, text)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>receiver:<br>sender (player / console)<br>"dev" (perm "script.debug" needed)<br>"online"<br>"server"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getTargetBlock</th>
- <th class="desc">returns the block a player is looking at</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getTargetBlock(player, radius, [fluidmode|false])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- Vanilla default radius: 5<br>
- radius will be cast to int<br>
- fluidmode: true does not ignore water
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getName</th>
- <th class="desc">returns the name of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getName(uuid / uuid_string / player)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>uuid and uuid_string can return null</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getUuid</th>
- <th class="desc">returns the uuid of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getUuid(player / player_name)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>player_name can return null</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getUuidFromId</th>
- <th class="desc">returns the uuid of a player from their id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getUuidFromId(player_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getNameFromId</th>
- <th class="desc">returns the name of a player from their id</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getNameFromId(player_id)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getId</th>
- <th class="desc">returns the id of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getId(player / uuid / uuid_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.get</th>
- <th class="desc">returns a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.get(player / uuid / uuid_string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.respawn</th>
- <th class="desc">forces the respawn of a dead player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.respawn(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setCompass</th>
- <th class="desc">sets the target of a compass</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setCompass(player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setHunger</th>
- <th class="desc">sets the hunger of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setHunger(player, number)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Vanilla default: 0-20</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getHunger</th>
- <th class="desc">returns the hunger of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getHunger(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSaturation</th>
- <th class="desc">sets the saturation of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSaturation(player, number)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>Vanilla default: 5, maximum: 20</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getSaturation</th>
- <th class="desc">returns the saturation of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getSaturation(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setGamemode</th>
- <th class="desc">set the gamemode for a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setGamemode(player, gamemode)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>gamemode as "SURVIVAL" / "CREATIVE" / "ADVENTURE" / "SPECTATOR"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSurvival</th>
- <th class="desc">returns true if a player is in gamemode survival</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSurvival(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isCreative</th>
- <th class="desc">returns true if a player is in gamemode creative</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isCreative(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isAdventure</th>
- <th class="desc">returns true if a player is in gamemode adventure</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isAdventure(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSpectator</th>
- <th class="desc">returns true if a player is in gamemode spectator</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSpectator(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.hasFly</th>
- <th class="desc">returns true if a player is allowed to fly</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.hasFly(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isFlying</th>
- <th class="desc">returns true if a player is flying</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isFlying(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setFly</th>
- <th class="desc">set if a player is allowed to fly</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setFly(player, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.dropInventory</th>
- <th class="desc">drops the inventory of a player at a location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.dropInventory(player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getItemAmount</th>
- <th class="desc">returns the amount of an exact itemstack from a players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getItemAmount(player, itemstack)</td>
- </tr>
- <table>
- <tr>
- <th class="command">player.damageItem</th>
- <th class="desc">damages the item in the hand of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.damageItem(player, damage_amount)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>unbreaking (and more) is considered</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSpawn</th>
- <th class="desc">sets the spawn location of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSpawn(player, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getSpawn</th>
- <th class="desc">returns the spawn location of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getSpawn(player)</td>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>spawn is linked to the bed spawn, if no bed spawn exists the return value may be null</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.giveItem</th>
- <th class="desc">gives an itemstack to a player and returns the item amount which did not fit in a players inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.giveItem(player, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.addItem</th>
- <th class="desc">returns 0 if the itemstack is added, otherwise the itemstack will not be added and the not fitting item amount is returned</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.addItem(player, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.removeItem</th>
- <th class="desc">returns 0 if the itemstack is removed, otherwise the itemstack will not be removed and the missing item amount is returned</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.removeItem(player, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getIP</th>
- <th class="desc">returns the ip-address of a player as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getIp(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getInv</th>
- <th class="desc">returns the (non-copy) inventory of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getInv(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getEnderInv</th>
- <th class="desc">returns the (non-copy) ender inventory of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getEnderInv(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getTargetEntity</th>
- <th class="desc">returns the targeted entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getTargetEntity(player, radius)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>radius will be cast to int<br></td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getTargetCitizen</th>
- <th class="desc">returns the targeted citizen</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getTargetCitizen(player, radius)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>radius will be cast to int<br></td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getLevel</th>
- <th class="desc">returns the level of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getLevel(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setLevel</th>
- <th class="desc">sets the level of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setLevel(player, level)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>level is cast to int</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getExp</th>
- <th class="desc">returns the experience of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getExp(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setExp</th>
- <th class="desc">sets the experience of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setExp(player, exp)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>exp is cast to float</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.addTotalExp</th>
- <th class="desc">modifies the experience of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.addTotalExp(player, exp)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>exp is cast to int</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.hide</th>
- <th class="desc">hides a player from another player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.hide(player, player_to_hide)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.show</th>
- <th class="desc">shows a player or another player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.show(player, player_to_show)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setFlySpeed</th>
- <th class="desc">sets the fly speed of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setFlySpeed(player, speed)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>speed is cast to float</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setWalkSpeed</th>
- <th class="desc">sets the walk speed of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setWalkSpeed(player, speed)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>speed is cast to float</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSprinting</th>
- <th class="desc">returns true if the player is sprinting</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSprinting(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSprinting</th>
- <th class="desc">sets weather the player is sprinting or not</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSprinting(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSneaking</th>
- <th class="desc">sets weather the player is sneaking or not</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSneaking(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isSneaking</th>
- <th class="desc">returns true if a player is sneaking</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isSneaking(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.isBlocking</th>
- <th class="desc">returns true if a player is blocking with their shield</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.isBlocking(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSlot</th>
- <th class="desc">sets the active slot of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setSlot(player, slot)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>slot from 0 to 8</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.resetSleep</th>
- <th class="desc">resets the time since last rest</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.resetSleep(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getSpectatorTarget</th>
- <th class="desc">gets the Targetentity the player is spectating</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getSpectatorTarget(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setSpectatorTarget</th>
- <th class="desc">sets the Targetentity the player is spectating, set entity to null to reset.</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getSpectatorTarget(player, entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getLastDeathLocation</th>
- <th class="desc">gets the players last death location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getLastDeathLocation(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.showElderGuardian</th>
- <th class="desc">if silent is true, the elder guardian animation if hidden</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.showElderGuardian(player, silent)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setExpCooldown</th>
- <th class="desc">Sets the player's cooldown between picking up experience orbs.</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setExpCooldown(player, ticks)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.sendHurtAnimation</th>
- <th class="desc">Fakes incoming damage, yaw from 0-270. 0 = straight, 90 = right</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.sendHurtAnimation(player, yaw)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.lookat</th>
- <th class="desc">sets the player to look at an entity, LookAnchor = "EYES"/"FEET"</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.lookat(player, entity, playerLookAnchor, entityLookAnchor)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.getPing</th>
- <th class="desc">returns the ping of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.getPing(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setPlayerListHeader</th>
- <th class="desc">sets the TablistHeader for the receiver</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setPlayerListHeader(receiver, text)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">player.setPlayerListFooter</th>
- <th class="desc">sets the TablistFooter for the receiver</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>player.setPlayerListFooter(receiver, text)</td>
- </tr>
- </table>
- </section>
- <section id="Inventory">
- <table>
- <tr>
- <th class="command">inv.new</th>
- <th class="desc">returns a new custom inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.new(slotdata, title)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- slotdata as string:<br>
- 0 = no slot, throws no event<br>
- 1 = normal slot, throws inv_click event<br>
- 2 = button slot, throws snuvi_click event
- </td>
- </tr>
- <tr>
- <td class="bold">Examples</td>
- <td>inv.new("002122000", ...)</td>
- </tr>
- </table>
- </table>
- <table>
- <tr>
- <th class="command">inv.getSize</th>
- <th class="desc">returns the size of an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getSize(inventory)</td>
- </tr>
- <table>
- <tr>
- <th class="command">inv.setItem</th>
- <th class="desc">sets an itemstack on a specific slot in an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.setItem(inventory, slotindex, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.getItem</th>
- <th class="desc">returns an itemstack from a specific slot of an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getItem(inventory, slotindex)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.open</th>
- <th class="desc">shows an inventory to a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.open(inventory, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.close</th>
- <th class="desc">closes an inventory of a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.close(player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.clear</th>
- <th class="desc">clears an inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.clear(inv)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.getID</th>
- <th class="desc">returns the id of an inventory or -1 if no custom inventory</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.getID(inventory)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">inv.closeAll()</th>
- <th class="desc">closes all custom inventories of all players</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>inv.closeAll()</td>
- </tr>
- </table>
- </section>
- <section id="World">
- <table>
- <tr>
- <th class="command">world.get</th>
- <th class="desc">returns a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.get(name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getName</th>
- <th class="desc">returns the name of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getName(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getPlayers</th>
- <th class="desc">returns a list with all players in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getPlayers(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setDifficulty</th>
- <th class="desc">sets the difficulty of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setDifficulty(world, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Difficulty.html" target="_blank">difficulty</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setSpawn</th>
- <th class="desc">sets the world spawn</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setSpawn(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getSpawn</th>
- <th class="desc">returns the world spawn as location</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getSpawn(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getAll</th>
- <th class="desc">returns a list with all loaded worlds</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getAll()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setTime</th>
- <th class="desc">sets the time for a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setTime(world, time)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>time from 0 to 24000</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getTime</th>
- <th class="desc">returns the time of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getTime(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.hasRain</th>
- <th class="desc">returns true if it is raining in the world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.hasStorm(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.hasThunder</th>
- <th class="desc">returns true if there is thunder in the world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.hasThunder(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.clearWeather</th>
- <th class="desc">clears the weather of a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.clearWeather(world, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>ticks when the next rain is allowed to start</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setRain</th>
- <th class="desc">sets the weather of a world to rain</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setRain(world, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>ticks how long the rain stays</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.setThunder</th>
- <th class="desc">sets the weather of a world to thunder</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.setThunder(world, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>ticks how long the thunder stays</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getEntities</th>
- <th class="desc">returns a list with all entities in a world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getEntities(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.load</th>
- <th class="desc">returns the loaded world</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.load(name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.unload</th>
- <th class="desc">returns true if unloading a world is successful</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.unload(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getLoadedChunks</th>
- <th class="desc">returns an array with all loaded chunks</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getLoadedChunks(world)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.unloadChunk</th>
- <th class="desc">returns true if unloading a chunk is successful</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.unloadChunk(chunk)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getChunkX</th>
- <th class="desc">returns the x chunk coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getChunkX(chunk)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.getChunkZ</th>
- <th class="desc">returns the x chunk coordinate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.getChunkZ(chunk)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">world.isForceLoadedChunk</th>
- <th class="desc">returns true if a chunk is forced to be loaded</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>world.isForceLoadedChunk(chunk)</td>
- </tr>
- </table>
- </section>
- <section id="Entity">
- <table>
- <tr>
- <th class="command">entity.getUuid</th>
- <th class="desc">returns the uuid of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getUuid(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getType</th>
- <th class="desc">returns the type of an entity as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getType(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setName</th>
- <th class="desc">sets the name of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setName(entity, text, [nameVisibility | false])</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>nameVisibility true means an always visible name)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getName</th>
- <th class="desc">returns the name of an entity as text</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getName(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getLocation</th>
- <th class="desc">returns the location of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getLocation(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.teleport</th>
- <th class="desc">teleports an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.teleport(entity, location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setInvulnerable</th>
- <th class="desc">sets an entity (in)vulnerable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setInvulnerable(entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.remove</th>
- <th class="desc">removes an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.remove(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.removeAll</th>
- <th class="desc">remove specific entities from an area</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.removeAll(entity_class, location, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setSilent</th>
- <th class="desc">true sets an entity silent</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setSilent(entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.mount</th>
- <th class="desc">lets an entity ride another entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.mount(entity, mount_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.unmount</th>
- <th class="desc">unmounts an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.unmount(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getMount</th>
- <th class="desc">returns the mount of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getMount(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getPassengers</th>
- <th class="desc">returns a list of passengers of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getPassengers(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.isWet</th>
- <th class="desc">returns true if an entity is wet</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.isWet(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.isBurning</th>
- <th class="desc">returns true if an entity burns</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.isBurning(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setBurning</th>
- <th class="desc">sets an entity on fire</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setBurning(entity, ticks)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>0 ticks extinguish the entity</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setNoPickup</th>
- <th class="desc">sets an arrow_entity not pickupable</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setNoPickup(arrow_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.get</th>
- <th class="desc">returns the next entity to a location or null</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.get(location, radius, entity_class)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.spawn</th>
- <th class="desc">spawns an entity and returns it</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.spawn(location, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/entity/EntityType.html" target="_blank">type</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setGravity</th>
- <th class="desc">toggles the gravity of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setGravity(entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setGrowingAge</th>
- <th class="desc">sets the growing age of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setGrowingAge(entity, age_int)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getPotionType</th>
- <th class="desc">returns the itemstack of a thrown potion</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getPotionType(potion_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.near</th>
- <th class="desc">returns a list with all entities within a location / a radius of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.near(location / entity, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getLook</th>
- <th class="desc">returns the look direction as array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getLook(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setLook</th>
- <th class="desc">sets the look of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setLook(entity, x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.getMotion</th>
- <th class="desc">returns the motion as array</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.getMotion(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.setMotion</th>
- <th class="desc">sets the motion of an entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.setMotion(entity, x, y, z)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>x/y/z is clamped in the interval from -3.9 to 3.9 by Minecraft</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.spawn</th>
- <th class="desc">spawns an itemframe with an itemstack</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.spawn(location, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/block/BlockFace.html" target="_blank">block_face</a>, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.getItem</th>
- <th class="desc">returns the itemstack of an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.getItem(entity_frame)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.hide</th>
- <th class="desc">hides an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.hide(entity_frame)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.show</th>
- <th class="desc">shows an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.show(entity_frame)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.setFixed</th>
- <th class="desc">sets the fixed tag for an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.setFixed(entity_frame, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.frame.setFacing</th>
- <th class="desc">sets the facing for an itemframe</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.frame.setFacing(entity_frame, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/block/BlockFace.html" target="_blank">block_face</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">entity.spawnSeat</th>
- <th class="desc">returns an itemframe (as a seat to mount another entity)</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>entity.spawnSeat(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">rabbit.spawnKillerBunny</th>
- <th class="desc">spawns a killer bunny and returns it</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>rabbit.spawnKillerBunny(location)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">creeper.explode</th>
- <th class="desc">lets a creeper explode</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>creeper.explode(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sheep.isSheared</th>
- <th class="desc">returns true if a sheep is sheared</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sheep.isSheared(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sheep.getColor</th>
- <th class="desc">returns the color of a sheep as string</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sheep.getColor(entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.isTamed</th>
- <th class="desc">returns true if a pet is tamed</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>pet.isTamed(tameable_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.setTamed</th>
- <th class="desc">sets tame state for a tameable entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>pet.setTamed(tameable_entity, boolean, [owner])</td>
- </tr>
- <tr>
- <td class="bold">Example</td>
- <td>
- pet.setTamed(horse, true)<br>
- pet.setTamed(horse, false)<br>
- pet.setTamed(horse, true, player)<br>
- pet.setTamed(horse, false, player)<br>
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">pet.getOwner</th>
- <th class="desc">returns the owner of a pet</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>pet.getOwner(tameable_entity)</td>
- </tr>
- </table>
- </section>
- <section id="Living">
- <table>
- <tr>
- <th class="command">living.setHealth</th>
- <th class="desc">sets the health points of a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setHealth(living_entity, amount)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.getHealth</th>
- <th class="desc">returns the health points of a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.getHealth(living_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.damage</th>
- <th class="desc">damages a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.damage(living_entity, damage_amount, damagesource)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>triggers events on the next server tick</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.heal</th>
- <th class="desc">heals a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.heal(living_entity, heal_amount)</td>
- </tr>
- <tr>
- <td class="bold">Info</td>
- <td>triggers events on the next server tick</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.setEquip</th>
- <th class="desc">sets the equipment of a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>, itemstack)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.getEquip</th>
- <th class="desc">returns the equipment of a living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.getEquip(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/inventory/EquipmentSlot.html" target="_blank">slot</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.near</th>
- <th class="desc">returns a list with all living entities within a location / a radius of a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.near(location / living_entity, radius)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.setAi</th>
- <th class="desc">sets if the AI of an entity is active</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setAi(living_entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">generic living commands</th>
- <th class="desc">commands for living properties</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>
- living.get...(living_entity)<br>
- living.set...(living_entity, value)<br>
- living.reset...(living_entity)
- </td>
- </tr>
- <tr>
- <td class="bold">Properties</td>
- <td><a href="https://minecraft.fandom.com/wiki/Attribute#Attributes" target="_blank">attributes</a> without "GENERIC." and "_"</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.shootProjectile</th>
- <th class="desc">returns the shooten entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.shootProjectile(living_entity, entity_class)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.setInvisible</th>
- <th class="desc">sets a living_entity (in)visible</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.setInvisible(living_entity, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.addEffect</th>
- <th class="desc">adds an effect to a living_entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.addEffect(living_entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>, ticks, amplifier, [particle | true])</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>amplifier 0 means potion level 1</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.clearEffects</th>
- <th class="desc">removes all effects from a living entity</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.clearEffects(living_entity)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">living.getEffectAmplifier</th>
- <th class="desc">returns the amplifier (effect level), -1 if not existing</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>living.getEffectAmplifier(entity, <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/potion/PotionEffectType.html" target="_blank">effect</a>)</td>
- </tr>
- </table>
- </section>
- <section id="Particle">
- <table>
- <tr>
- <th class="command">particle.get</th>
- <th class="desc">returns a particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.get(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/Particle.html" target="_blank">name</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.getAll</th>
- <th class="desc">returns an array of all particles</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.getAll()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.spawn</th>
- <th class="desc">spawns a particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.spawn(location, particle, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">particle.spawnPlayer</th>
- <th class="desc">spawns a particle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>particle.spawnPlayer(location, particle, player, [count | 1], [speed | 0.0], [offX | 0.0], [offY | 0.0], [offZ | 0.0])</td>
- </tr>
- </table>
- </section>
- <section id="Sound">
- <table>
- <tr>
- <th class="command">sound.get</th>
- <th class="desc">returns a sound</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.get(<a href="https://minecraft.fandom.com/wiki/Sounds.json#Sound_events" target="_blank">name</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.getCategory</th>
- <th class="desc">returns a sound category</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.getCategory(<a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/SoundCategory.html" target="_blank">name</a>)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.spawn</th>
- <th class="desc">plays a sound</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.spawn(location, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">sound.spawnForPlayer</th>
- <th class="desc">plays a sound for a player</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>sound.spawnForPlayer(player, sound, sound_category, [volume | 1.0], [pitch | random from 0.9 to 1.0])</td>
- </tr>
- </table>
- </section>
- <section id="Boss">
- <table>
- <tr>
- <th class="command">boss.create</th>
- <th class="desc">returns a bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.create(title, color, barstyle)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>
- title as string<br>
- <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarColor.html" target="_blank">color</a> as string<br>
- <a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarStyle.html" target="_blank">barstyle</a> as string
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.addPlayer</th>
- <th class="desc">add a player to the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.addPlayer(bossbar, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.removePlayer</th>
- <th class="desc">remove a player from the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.removePlayer(bossbar, player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.removeAll</th>
- <th class="desc">remove all players from the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.removeAll(bossbar)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.addFlag</th>
- <th class="desc">adds a flag to the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.addFlag(bossbar, flag)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.removeFlag</th>
- <th class="desc">removes a flag from the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.removeFlag(bossbar, flag)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td><a href="https://papermc.io/javadocs/paper/1.21.4/org/bukkit/boss/BarFlag.html" target="_blank">flag</a> as string</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setTitle</th>
- <th class="desc">sets the title for the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setTitle(bossbar, string)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">boss.setProgress</th>
- <th class="desc">sets the progress of the bossbar</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>boss.setProgress(bossbar, double)</td>
- </tr>
- <tr>
- <td class="bold">Arguments</td>
- <td>double from 0 to 1</td>
- </tr>
- </table>
- </section>
- <section id="Whitelist">
- <table>
- <tr>
- <th class="command">whitelist.enable</th>
- <th class="desc">enables the whitelist</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>whitelist.enable()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">whitelist.disable</th>
- <th class="desc">disables the whitelist</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>whitelist.disable()</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">whitelist.add</th>
- <th class="desc">adds a player to the whitelist</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>whitelist.add(uuid / uuid_string / player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">whitelist.remove</th>
- <th class="desc">removes a player from the whitelist</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>whitelist.remove(uuid / uuid_string / player)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">whitelist.clear</th>
- <th class="desc">clears the whitelist</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>whitelist.clear()</td>
- </tr>
- </table>
- </section>
- <section id="Armorstand">
- <table>
- <tr>
- <th class="command">as.getBodyPose</th>
- <th class="desc">returns the body pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getBodyPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.getHeadPose</th>
- <th class="desc">returns the head pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getHeadPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.getLeftArmPose</th>
- <th class="desc">returns the left arm pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getLeftArmPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.getRightArmPose</th>
- <th class="desc">returns the right arm pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getRightArmPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.getLeftLegPose</th>
- <th class="desc">returns the left leg pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getLeftLegPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.getRightLegPose</th>
- <th class="desc">returns the right leg pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.getRightLegPose(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.hasArms</th>
- <th class="desc">returns true if an armor stand has arms</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.hasArms(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.hasBasePlate</th>
- <th class="desc">returns true if an armor stand has a base plate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.hasBasePlate(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.isMarker</th>
- <th class="desc">returns true if an armor stand is a marker</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.isMarker(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.isSmall</th>
- <th class="desc">returns true if an armor stand is small</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.isSmall(armor_stand)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setArms</th>
- <th class="desc">sets that an armor stand can have arms</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setArms(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setBasePlate</th>
- <th class="desc">sets that an armor stand can have a base plate</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setBasePlate(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setMarker</th>
- <th class="desc">sets that an armor stand can be a marker</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setMarker(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setSmall</th>
- <th class="desc">sets that an armor stand is small</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setSmall(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.canMove</th>
- <th class="desc">sets that an armor stand can move</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.canMove(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.canTick</th>
- <th class="desc">sets that an armor stand can tick</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.canTick(armor_stand, boolean)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setBodyPose</th>
- <th class="desc">sets the body pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setBodyPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setHeadPose</th>
- <th class="desc">sets the head pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setHeadPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setLeftArmPose</th>
- <th class="desc">sets the left arm pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setLeftArmPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setRightArmPose</th>
- <th class="desc">sets the right arm pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setRightArmPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setLeftLegPose</th>
- <th class="desc">sets the left leg pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setLeftLegPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">as.setRightLegPose</th>
- <th class="desc">sets the right leg pose of an armor stand</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>as.setRightLegPose(armor_stand, euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.new</th>
- <th class="desc">returns a new created euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.new(x, y, z)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.getX</th>
- <th class="desc">returns the x angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.getX(euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.getY</th>
- <th class="desc">returns the y angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.getY(euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.getZ</th>
- <th class="desc">returns the z angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.getZ(euler_angle)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.setX</th>
- <th class="desc">sets the x angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.setX(euler_angle, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.setY</th>
- <th class="desc">sets the y angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.setY(euler_angle, value)</td>
- </tr>
- </table>
- <table>
- <tr>
- <th class="command">euler.setZ</th>
- <th class="desc">sets the z angle of an euler angle</th>
- </tr>
- <tr>
- <td class="bold">Format</td>
- <td>euler.setZ(euler_angle, value)</td>
- </tr>
- </table>
- </section>
|