u_cmdhelp.txt 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427
  1. function setCommandHelps() {
  2. command.clearHelp();
  3. command.clearIgnored();
  4. command.clearNoPerm();
  5. //Vanilla ignorieren, danach neu setzen
  6. command.addIgnored("time");
  7. command.addIgnored("tp");
  8. command.addIgnored("help");
  9. command.addIgnored("ban");
  10. command.addIgnored("kick");
  11. command.addIgnored("gamemode");
  12. command.addIgnored("gamerule");
  13. command.addIgnored("enchant");
  14. command.addIgnored("jumpto");
  15. command.addNoPerm("/br");
  16. command.addNoPerm("/brush");
  17. command.addNoPerm("/desel");
  18. command.addNoPerm("/deselect");
  19. command.addNoPerm("/sel");
  20. command.addNoPerm("/toggleplace");
  21. command.addNoPerm(";");
  22. command.addNoPerm("brush");
  23. command.addNoPerm("none");
  24. command.addNoPerm("toggleplace");
  25. command.addNoPerm("tool");
  26. command.addNoPerm("br");
  27. command.addNoPerm("icanhasbukkit");
  28. command.addNoPerm("we");
  29. command.addNoPerm("worldedit");
  30. command.addNoPerm("worldedit:we");
  31. command.addNoPerm("worldedit:worldedit");
  32. command.addNoPerm("worldedit:/br");
  33. command.addNoPerm("worldedit:/brush");
  34. command.addNoPerm("worldedit:/desel");
  35. command.addNoPerm("worldedit:/deselect");
  36. command.addNoPerm("worldedit:/sel");
  37. command.addNoPerm("worldedit:/toggleplace");
  38. command.addNoPerm("worldedit:;");
  39. command.addNoPerm("worldedit:brush");
  40. command.addNoPerm("worldedit:none");
  41. command.addNoPerm("worldedit:toggleplace");
  42. command.addNoPerm("worldedit:tool");
  43. command.addNoPerm("worldedit:br");
  44. command.addNoPerm("worldedit:icanhasbukkit");
  45. commandhelp.add("afk");
  46. commandhelp.add("back");
  47. commandhelp.add("color");
  48. commandhelp.add("comeback");
  49. commandhelp.add("customitems");
  50. commandhelp.add("giveup");
  51. commandhelp.add("hat");
  52. commandhelp.add("head");
  53. commandhelp.add("hub");
  54. commandhelp.add("icon");
  55. commandhelp.add("iteminfo");
  56. commandhelp.add("joinme");
  57. commandhelp.add("jumpto");
  58. commandhelp.add("lag");
  59. commandhelp.add("leave");
  60. commandhelp.add("lightning");
  61. commandhelp.add("live");
  62. commandhelp.add("memory");
  63. commandhelp.add("nowb");
  64. commandhelp.add("ping");
  65. commandhelp.add("rank");
  66. commandhelp.add("repair");
  67. commandhelp.add("ride");
  68. commandhelp.add("settings");
  69. commandhelp.add("silentjoin");
  70. commandhelp.add("skipnight");
  71. commandhelp.add("sponsor");
  72. commandhelp.add("startgame");
  73. commandhelp.add("top");
  74. commandhelp.add("voteshop");
  75. commandhelp.addChildPlayer("unmute");
  76. commandhelp.addChildPlayer("tpa");
  77. commandhelp.addChildPlayer("tpaccept");
  78. commandhelp.addChildPlayer("tpahere");
  79. commandhelp.addChildPlayer("tpaccepthere");
  80. commandhelp.addChildPlayer("head");
  81. commandhelp.addChildPlayer("seen");
  82. commandhelp.addChildPlayer("heal");
  83. commandhelp.addChildPlayer("feed");
  84. command.addHelp(command.newHelp("colour", "color"));
  85. command.addHelp(command.newHelp("fuckit", "giveup"));
  86. command.addHelp(command.newHelp("skull", "head"));
  87. command.addHelp(command.newHelp("l", "leave"));
  88. command.addHelp(command.newHelp("mem", "memory"));
  89. command.addHelp(command.newHelp("ram", "memory"));
  90. command.addHelp(command.newHelp("thor", "lightning"));
  91. help = command.newHelp("start", "start");
  92. command.addHelpChild(help, command.newHelpLiteral("ai"));
  93. command.addHelpChild(help, command.newHelpLiteral("challenges"));
  94. command.addHelpChild(help, command.newHelpLiteral("chat"));
  95. command.addHelpChild(help, command.newHelpLiteral("commands"));
  96. command.addHelpChild(help, command.newHelpLiteral("copyisland"));
  97. command.addHelpChild(help, command.newHelpLiteral("creative"));
  98. command.addHelpChild(help, command.newHelpLiteral("damage"));
  99. command.addHelpChild(help, command.newHelpLiteral("doors"));
  100. command.addHelpChild(help, command.newHelpLiteral("fixitems"));
  101. command.addHelpChild(help, command.newHelpLiteral("gemstones"));
  102. command.addHelpChild(help, command.newHelpLiteral("harvest"));
  103. command.addHelpChild(help, command.newHelpLiteral("herobrine"));
  104. command.addHelpChild(help, command.newHelpLiteral("humans"));
  105. command.addHelpChild(help, command.newHelpLiteral("lectern"));
  106. command.addHelpChild(help, command.newHelpLiteral("loginrequests"));
  107. command.addHelpChild(help, command.newHelpLiteral("loom"));
  108. command.addHelpChild(help, command.newHelpLiteral("games"));
  109. command.addHelpChild(help, command.newHelpLiteral("mails"));
  110. command.addHelpChild(help, command.newHelpLiteral("market"));
  111. command.addHelpChild(help, command.newHelpLiteral("mobarena"));
  112. command.addHelpChild(help, command.newHelpLiteral("perms"));
  113. command.addHelpChild(help, command.newHelpLiteral("playerdata"));
  114. command.addHelpChild(help, command.newHelpLiteral("playtime"));
  115. command.addHelpChild(help, command.newHelpLiteral("pumpkin"));
  116. command.addHelpChild(help, command.newHelpLiteral("recipes"));
  117. command.addHelpChild(help, command.newHelpLiteral("scheduler"));
  118. command.addHelpChild(help, command.newHelpLiteral("shop"));
  119. command.addHelpChild(help, command.newHelpLiteral("sitting"));
  120. command.addHelpChild(help, command.newHelpLiteral("skills"));
  121. command.addHelpChild(help, command.newHelpLiteral("stats"));
  122. command.addHelpChild(help, command.newHelpLiteral("story"));
  123. command.addHelpChild(help, command.newHelpLiteral("survival"));
  124. command.addHelpChild(help, command.newHelpLiteral("teleporter"));
  125. command.addHelpChild(help, command.newHelpLiteral("ticket"));
  126. command.addHelpChild(help, command.newHelpLiteral("timber"));
  127. command.addHelpChild(help, command.newHelpLiteral("tiploop"));
  128. command.addHelpChild(help, command.newHelpLiteral("trader"));
  129. command.addHelp(help);
  130. addGmHelp("gamemode");
  131. addGmHelp("gm");
  132. addAsHelp("armorstand");
  133. addAsHelp("as");
  134. help = command.newHelp("vanish", "vanish");
  135. //vanish [on] [player]
  136. helpArg0 = command.newHelpLiteral("on");
  137. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  138. command.addHelpChild(help, helpArg0);
  139. //vanish [off] [player]
  140. helpArg0 = command.newHelpLiteral("off");
  141. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  142. command.addHelpChild(help, helpArg0);
  143. command.addHelp(help);
  144. commandhelp.addAlias("v", "vanish", helpArg0);
  145. help = command.newHelp("databank", "databank");
  146. //databank showtables
  147. command.addHelpChild(help, command.newHelpLiteral("showtables"));
  148. //databank showfields <table>
  149. helpArg0 = command.newHelpLiteral("showfields");
  150. command.addHelpChild(helpArg0, command.newHelpString("table", false));
  151. command.addHelpChild(help, helpArg0);
  152. //databank showdatatypes <table>
  153. helpArg0 = command.newHelpLiteral("showdatatypes");
  154. command.addHelpChild(helpArg0, command.newHelpString("table", false));
  155. command.addHelpChild(help, helpArg0);
  156. command.addHelp(help);
  157. help = command.newHelp("copyisland", "copyisland");
  158. //copyisland copy/paste
  159. command.addHelpChild(help, command.newHelpLiteral("copy"));
  160. command.addHelpChild(help, command.newHelpLiteral("paste"));
  161. //copyisland pos1/pos2
  162. command.addHelpChild(help, command.newHelpLiteral("pos1"));
  163. command.addHelpChild(help, command.newHelpLiteral("pos2"));
  164. command.addHelp(help);
  165. help = command.newHelp("fly", "fly");
  166. helpArg0 = command.newHelpSpecial("Player", "player", "fly.other");
  167. command.addHelpChild(helpArg0, command.newHelpLiteral("on"));
  168. command.addHelpChild(helpArg0, command.newHelpLiteral("off"));
  169. command.addHelpChild(help, helpArg0);
  170. command.addHelp(help);
  171. help = command.newHelp("enchant", "enchant");
  172. helpArg0 = command.newHelpSpecial("Enchantment", "enchantment");
  173. command.addHelpChild(helpArg0, command.newHelpInt("level", 0, 100));
  174. command.addHelpChild(help, helpArg0);
  175. command.addHelp(help);
  176. help = command.newHelp("allsounds", "allsounds");
  177. //allsounds start
  178. command.addHelpChild(help, command.newHelpLiteral("start"));
  179. //allsounds stop
  180. command.addHelpChild(help, command.newHelpLiteral("stop"));
  181. //allsounds play <sound>
  182. helpArg0 = command.newHelpLiteral("play");
  183. command.addHelpChild(helpArg0, command.newHelpSpecial("Sound", "sound"));
  184. command.addHelpChild(help, helpArg0);
  185. //allsounds show [page]
  186. helpArg0 = command.newHelpLiteral("show");
  187. command.addHelpChild(helpArg0, command.newHelpInt("page", 1, 200));
  188. command.addHelpChild(help, helpArg0);
  189. command.addHelp(help);
  190. help = command.newHelp("spawn", "spawn");
  191. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "tp.other"));
  192. command.addHelp(help);
  193. help = command.newHelp("games", "games");
  194. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "tp.other"));
  195. command.addHelp(help);
  196. help = command.newHelp("creative", "creative");
  197. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "tp.other"));
  198. command.addHelp(help);
  199. help = command.newHelp("ass", "ass");
  200. //ass set <name>
  201. helpArg0 = command.newHelpLiteral("set");
  202. command.addHelpChild(helpArg0, command.newHelpString("name", true));
  203. command.addHelpChild(help, helpArg0);
  204. //ass name <name>
  205. helpArg0 = command.newHelpLiteral("name");
  206. command.addHelpChild(helpArg0, command.newHelpString("name", true));
  207. command.addHelpChild(help, helpArg0);
  208. //ass remove <radius>
  209. helpArg0 = command.newHelpLiteral("remove");
  210. command.addHelpChild(helpArg0, command.newHelpInt("radius", 0, 10));
  211. command.addHelpChild(help, helpArg0);
  212. command.addHelp(help);
  213. help = command.newHelp("tppos", "tppos");
  214. helpArg0 = command.newHelpInt("x", -32000, 32000);
  215. helpArg1 = command.newHelpInt("y", 0, 1000);
  216. helpArg2 = command.newHelpInt("z", -32000, 32000);
  217. helpArg3 = command.newHelpString("world", false);
  218. helpArg4 = command.newHelpSpecial("Player", "player");
  219. command.addHelpChild(helpArg3, helpArg4);
  220. command.addHelpChild(helpArg2, helpArg3);
  221. command.addHelpChild(helpArg1, helpArg2);
  222. command.addHelpChild(helpArg0, helpArg1);
  223. command.addHelpChild(help, helpArg0);
  224. command.addHelp(help);
  225. help = command.newHelp("stats", "stats");
  226. addStatsGameHelp(help, "AmongUs");
  227. addStatsGameHelp(help, "BedWars");
  228. addStatsGameHelp(help, "RageMode");
  229. addStatsGameHelp(help, "JR-Endless");
  230. addStatsGameHelp(help, "Rebuild");
  231. addStatsGameHelp(help, "FastBridge");
  232. addStatsGameHelp(help, "Snowfight");
  233. addStatsGameHelp(help, "JR-Death");
  234. addStatsGameHelp(help, "JR-Ice");
  235. addStatsGameHelp(help, "JR-Rooms");
  236. addStatsGameHelp(help, "Letters");
  237. addStatsGameHelp(help, "ItemHunt");
  238. addStatsGameHelp(help, "Sammelfieber");
  239. addStatsGameHelp(help, "Buttons");
  240. addStatsGameHelp(help, "HideAndSeek");
  241. addStatsGameHelp(help, "Inverting");
  242. addStatsGameHelp(help, "Spleef");
  243. addStatsGameHelp(help, "Knockfight");
  244. addStatsGameHelp(help, "Leapfrog");
  245. addStatsGameHelp(help, "Parcour");
  246. addStatsGameHelp(help, "Halma");
  247. addStatsGameHelp(help, "ShoppingChaos");
  248. addStatsGameHelp(help, "MengerRun");
  249. addStatsGameHelp(help, "Snake");
  250. addStatsGameHelp(help, "DontGetAngry");
  251. addStatsGameHelp(help, "CaptureTheFlag");
  252. addStatsGameHelp(help, "Cores");
  253. command.addHelp(help);
  254. help = command.newHelp("setspawn", "setspawn");
  255. command.addHelpChild(help, command.newHelpLiteral("server"));
  256. command.addHelpChild(help, command.newHelpLiteral("games"));
  257. command.addHelpChild(help, command.newHelpLiteral("creative"));
  258. command.addHelp(help);
  259. addDtHelp("datatools");
  260. addDtHelp("dt");
  261. help = command.newHelp("help", "help");
  262. helpArg0 = command.newHelpInt("page", 1, 100);
  263. command.addHelpChild(help, helpArg0);
  264. command.addHelp(help);
  265. commandhelp.addAlias("mimimi", "help", helpArg0);
  266. help = command.newHelp("suicide", "suicide");
  267. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "suicide.other"));
  268. command.addHelp(help);
  269. help = command.newHelp("tempfly", "tempfly");
  270. helpArg0 = command.newHelpSpecial("Player", "player");
  271. command.addHelpChild(helpArg0, command.newHelpInt("seconds", 1, 10000));
  272. command.addHelpChild(help, helpArg0);
  273. command.addHelp(help);
  274. help = command.newHelp("tempban", "tempban");
  275. helpArg0 = command.newHelpSpecial("Player", "player");
  276. helpArg1 = command.newHelpInt("days", 0, 365);
  277. helpArg2 = command.newHelpInt("hours", 0, 100);
  278. helpArg3 = command.newHelpInt("minutes", 0, 100);
  279. command.addHelpChild(helpArg3, command.newHelpString("result", true));
  280. command.addHelpChild(helpArg2, helpArg3);
  281. command.addHelpChild(helpArg1, helpArg2);
  282. command.addHelpChild(helpArg0, helpArg1);
  283. command.addHelpChild(help, helpArg0);
  284. command.addHelp(help);
  285. help = command.newHelp("unban", "unban");
  286. helpArg0 = command.newHelpSpecial("Player", "player");
  287. command.addHelpChild(help, helpArg0);
  288. command.addHelp(help);
  289. commandhelp.addAlias("pardon", "unban", helpArg0);
  290. help = command.newHelp("ban", "ban");
  291. helpArg0 = command.newHelpSpecial("Player", "player");
  292. command.addHelpChild(helpArg0, command.newHelpString("reason", true));
  293. command.addHelpChild(help, helpArg0);
  294. command.addHelp(help);
  295. help = command.newHelp("kick", "kick");
  296. helpArg0 = command.newHelpSpecial("Player", "player");
  297. command.addHelpChild(helpArg0, command.newHelpString("reason", true));
  298. command.addHelpChild(help, helpArg0);
  299. command.addHelp(help);
  300. help = command.newHelp("answer", "answer");
  301. helpArg0 = command.newHelpString("message", true);
  302. command.addHelpChild(help, helpArg0);
  303. command.addHelp(help);
  304. commandhelp.addAlias("r", "answer", helpArg0);
  305. help = command.newHelp("time", "time");
  306. //time set <time>
  307. helpArg0 = command.newHelpLiteral("set");
  308. command.addHelpChild(helpArg0, command.newHelpInt("time", 0, 100000));
  309. command.addHelpChild(help, helpArg0);
  310. //time add <time>
  311. helpArg0 = command.newHelpLiteral("add");
  312. command.addHelpChild(helpArg0, command.newHelpInt("time", 0, 100000));
  313. command.addHelpChild(help, helpArg0);
  314. //time day / noon / night / midnight
  315. command.addHelpChild(help, command.newHelpLiteral("day"));
  316. command.addHelpChild(help, command.newHelpLiteral("noon"));
  317. command.addHelpChild(help, command.newHelpLiteral("night"));
  318. command.addHelpChild(help, command.newHelpLiteral("midnight"));
  319. command.addHelp(help);
  320. help = command.newHelp("enderchest", "enderchest");
  321. //enderchest [player] <from-player>
  322. helpArg0 = command.newHelpSpecial("Player", "player");
  323. command.addHelpChild(helpArg0, command.newHelpString("from-player", false));
  324. command.addHelpChild(help, helpArg0);
  325. //enderchest [player] <from-player>
  326. command.addHelpChild(help, command.newHelpString("from-player", false));
  327. command.addHelp(help);
  328. help = command.newHelp("nickname", "nickname");
  329. command.addHelpChild(help, command.newHelpString("name", true));
  330. command.addHelpChild(help, command.newHelpLiteral("remove"));
  331. command.addHelp(help);
  332. help = command.newHelp("perm", "perm");
  333. //perm give <player> <perm>
  334. helpArg0 = command.newHelpLiteral("give", "perm.give");
  335. helpArg1 = command.newHelpSpecial("Player", "player");
  336. command.addHelpChild(helpArg1, command.newHelpLiteral("owner", "isOwner"));
  337. command.addHelpChild(helpArg1, command.newHelpLiteral("admin", "isAdmin"));
  338. command.addHelpChild(helpArg1, command.newHelpLiteral("moderator", "isAdmin"));
  339. command.addHelpChild(helpArg1, command.newHelpLiteral("supporter"));
  340. command.addHelpChild(helpArg1, command.newHelpLiteral("builder"));
  341. command.addHelpChild(helpArg1, command.newHelpLiteral("worldedit"));
  342. command.addHelpChild(helpArg1, command.newHelpLiteral("vip"));
  343. command.addHelpChild(helpArg1, command.newHelpLiteral("developer"));
  344. command.addHelpChild(helpArg1, command.newHelpLiteral("devmaster"));
  345. command.addHelpChild(helpArg1, command.newHelpLiteral("yt"));
  346. command.addHelpChild(helpArg1, command.newHelpLiteral("streamer"));
  347. command.addHelpChild(helpArg1, command.newHelpLiteral("sponsor"));
  348. command.addHelpChild(helpArg1, command.newHelpLiteral("creative"));
  349. command.addHelpChild(helpArg1, command.newHelpLiteral("notickets"));
  350. command.addHelpChild(helpArg1, command.newHelpLiteral("bypass"));
  351. command.addHelpChild(helpArg1, command.newHelpLiteral("altruist"));
  352. command.addHelpChild(helpArg1, command.newHelpLiteral("legend"));
  353. command.addHelpChild(helpArg1, command.newHelpLiteral("creativeWE"));
  354. command.addHelpChild(helpArg0, helpArg1);
  355. command.addHelpChild(help, helpArg0);
  356. //perm remove <player> <perm>
  357. helpArg0 = command.newHelpLiteral("remove", "perm.remove");
  358. helpArg1 = command.newHelpSpecial("Player", "player");
  359. command.addHelpChild(helpArg1, command.newHelpLiteral("owner", "isOwner"));
  360. command.addHelpChild(helpArg1, command.newHelpLiteral("admin", "isAdmin"));
  361. command.addHelpChild(helpArg1, command.newHelpLiteral("moderator", "isAdmin"));
  362. command.addHelpChild(helpArg1, command.newHelpLiteral("supporter"));
  363. command.addHelpChild(helpArg1, command.newHelpLiteral("builder"));
  364. command.addHelpChild(helpArg1, command.newHelpLiteral("worldedit"));
  365. command.addHelpChild(helpArg1, command.newHelpLiteral("vip"));
  366. command.addHelpChild(helpArg1, command.newHelpLiteral("developer"));
  367. command.addHelpChild(helpArg1, command.newHelpLiteral("devmaster"));
  368. command.addHelpChild(helpArg1, command.newHelpLiteral("yt"));
  369. command.addHelpChild(helpArg1, command.newHelpLiteral("streamer"));
  370. command.addHelpChild(helpArg1, command.newHelpLiteral("sponsor"));
  371. command.addHelpChild(helpArg1, command.newHelpLiteral("creative"));
  372. command.addHelpChild(helpArg1, command.newHelpLiteral("notickets"));
  373. command.addHelpChild(helpArg1, command.newHelpLiteral("bypass"));
  374. command.addHelpChild(helpArg1, command.newHelpLiteral("altruist"));
  375. command.addHelpChild(helpArg1, command.newHelpLiteral("legend"));
  376. command.addHelpChild(helpArg1, command.newHelpLiteral("creativeWE"));
  377. command.addHelpChild(helpArg0, helpArg1);
  378. command.addHelpChild(help, helpArg0);
  379. //perm removeall <player>
  380. helpArg0 = command.newHelpLiteral("removeall", "perm.removeall");
  381. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  382. command.addHelpChild(help, helpArg0);
  383. //perm list <player>
  384. helpArg0 = command.newHelpLiteral("list", "perm.list");
  385. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  386. command.addHelpChild(help, helpArg0);
  387. //perm toggle
  388. command.addHelpChild(help, command.newHelpLiteral("toggle", "perm.toggle"));
  389. command.addHelp(help);
  390. addScriptHelp("s");
  391. addScriptHelp("script");
  392. addHomeHelp("home");
  393. addHomeHelp("h");
  394. help = command.newHelp("block", "block");
  395. //block info
  396. command.addHelpChild(help, command.newHelpLiteral("info"));
  397. //block public
  398. command.addHelpChild(help, command.newHelpLiteral("public"));
  399. //block remove
  400. command.addHelpChild(help, command.newHelpLiteral("remove"));
  401. //block fix
  402. command.addHelpChild(help, command.newHelpLiteral("fix"));
  403. command.addHelp(help);
  404. addPlotHelp("plot");
  405. addPlotHelp("p");
  406. help = command.newHelp("warp", "warp");
  407. //warp set <name>
  408. helpArg0 = command.newHelpLiteral("set", "warp.create");
  409. command.addHelpChild(helpArg0, command.newHelpString("name", false, "warp.create"));
  410. helpArg1 = command.newHelpString("group", false, "warp.create");
  411. command.addHelpChild(helpArg1, command.newHelpString("name", false, "warp.create"));
  412. command.addHelpChild(helpArg0, helpArg1);
  413. command.addHelpChild(help, helpArg0);
  414. //warp delete <name>
  415. helpArg0 = command.newHelpLiteral("delete", "warp.create");
  416. command.addHelpChild(helpArg0, command.newHelpString("name", false, "warp.create"));
  417. helpArg1 = command.newHelpString("group", false, "warp.create");
  418. command.addHelpChild(helpArg1, command.newHelpString("name", false, "warp.create"));
  419. command.addHelpChild(helpArg0, helpArg1);
  420. command.addHelpChild(help, helpArg0);
  421. //warp list
  422. helpArg0 = command.newHelpLiteral("list");
  423. command.addHelpChild(helpArg0, command.newHelpString("group", false, "warp.create"));
  424. command.addHelpChild(help, helpArg0);
  425. //warp <name>
  426. helpArg0 = command.newHelpString("name", false);
  427. command.addHelpChild(help, helpArg0);
  428. command.addHelp(help);
  429. help = command.newHelp("tp", "tp");
  430. helpArg0 = command.newHelpSpecial("Player", "player");
  431. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "to-player", "tp.other"));
  432. command.addHelpChild(help, helpArg0);
  433. command.addHelp(help);
  434. //loginrequests <player/all> <amount> [reason]
  435. help = command.newHelp("loginrequests", "loginrequests");
  436. helpArg0_A = command.newHelpLiteral("all");
  437. helpArg0_B = command.newHelpSpecial("Player", "player");
  438. helpArg1 = command.newHelpInt("amount", 1, 100);
  439. command.addHelpChild(helpArg1, command.newHelpLiteral("ALLOWED"));
  440. command.addHelpChild(helpArg1, command.newHelpLiteral("KICK_FULL"));
  441. command.addHelpChild(helpArg1, command.newHelpLiteral("KICK_BANNED"));
  442. command.addHelpChild(helpArg1, command.newHelpLiteral("KICK_WHITELIST"));
  443. command.addHelpChild(helpArg1, command.newHelpLiteral("KICK_OTHER"));
  444. command.addHelpChild(helpArg0_A, helpArg1);
  445. command.addHelpChild(helpArg0_B, helpArg1);
  446. command.addHelpChild(help, helpArg0_A);
  447. command.addHelpChild(help, helpArg0_B);
  448. command.addHelp(help);
  449. help = command.newHelp("lastseen", "lastseen");
  450. command.addHelpChild(help, command.newHelpInt("amount", 1, 100));
  451. command.addHelp(help);
  452. help = command.newHelp("human", "human");
  453. //human skin <name>
  454. helpArg0 = command.newHelpLiteral("skin");
  455. command.addHelpChild(helpArg0, command.newHelpLiteral("alena"));
  456. command.addHelpChild(helpArg0, command.newHelpLiteral("anna"));
  457. command.addHelpChild(helpArg0, command.newHelpLiteral("baker"));
  458. command.addHelpChild(helpArg0, command.newHelpLiteral("banker"));
  459. command.addHelpChild(helpArg0, command.newHelpLiteral("butcher"));
  460. command.addHelpChild(helpArg0, command.newHelpLiteral("casino"));
  461. command.addHelpChild(helpArg0, command.newHelpLiteral("dark_mage"));
  462. command.addHelpChild(helpArg0, command.newHelpLiteral("diver"));
  463. command.addHelpChild(helpArg0, command.newHelpLiteral("farmer"));
  464. command.addHelpChild(helpArg0, command.newHelpLiteral("fisher"));
  465. command.addHelpChild(helpArg0, command.newHelpLiteral("girl"));
  466. command.addHelpChild(helpArg0, command.newHelpLiteral("librarian"));
  467. command.addHelpChild(helpArg0, command.newHelpLiteral("lumberjack"));
  468. command.addHelpChild(helpArg0, command.newHelpLiteral("mage"));
  469. command.addHelpChild(helpArg0, command.newHelpLiteral("mage_assistant"));
  470. command.addHelpChild(helpArg0, command.newHelpLiteral("mage_guard"));
  471. command.addHelpChild(helpArg0, command.newHelpLiteral("mason"));
  472. command.addHelpChild(helpArg0, command.newHelpLiteral("miner"));
  473. command.addHelpChild(helpArg0, command.newHelpLiteral("notch"));
  474. command.addHelpChild(helpArg0, command.newHelpLiteral("priest"));
  475. command.addHelpChild(helpArg0, command.newHelpLiteral("santa_marv"));
  476. command.addHelpChild(helpArg0, command.newHelpLiteral("smith"));
  477. command.addHelpChild(help, helpArg0);
  478. command.addHelp(help);
  479. help = command.newHelp("mail", "mail");
  480. //mail <player> <message>
  481. helpArg0 = command.newHelpSpecial("Player", "player");
  482. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  483. command.addHelpChild(help, helpArg0);
  484. //mail new
  485. command.addHelpChild(help, command.newHelpLiteral("new"));
  486. //mail inbox
  487. command.addHelpChild(help, command.newHelpLiteral("inbox"));
  488. //mail outbox
  489. command.addHelpChild(help, command.newHelpLiteral("outbox"));
  490. //mail reset
  491. command.addHelpChild(help, command.newHelpLiteral("reset", "mail.reset"));
  492. command.addHelp(help);
  493. help = command.newHelp("playtime", "playtime");
  494. //playtime [player]
  495. command.addHelpChild(help, command.newHelpSpecial("Player", "player"));
  496. //playtime all
  497. command.addHelpChild(help, command.newHelpLiteral("all"));
  498. //playtime month [1-12] [year]
  499. helpArg0 = command.newHelpLiteral("month");
  500. helpArg1 = command.newHelpInt("month", 1, 12);
  501. command.addHelpChild(helpArg1, command.newHelpInt("year", 2019, 2024));
  502. command.addHelpChild(helpArg0, helpArg1);
  503. command.addHelpChild(help, helpArg0);
  504. //playtime year [year]
  505. helpArg0 = command.newHelpLiteral("year");
  506. command.addHelpChild(helpArg0, command.newHelpInt("year", 2019, 2024));
  507. command.addHelpChild(help, helpArg0);
  508. command.addHelp(help);
  509. help = command.newHelp("user", "user");
  510. //user info <player>
  511. helpArg0 = command.newHelpLiteral("info");
  512. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "user.other"));
  513. command.addHelpChild(help, helpArg0);
  514. //user addmoney <player> <money>
  515. helpArg0 = command.newHelpLiteral("addmoney", "user.money");
  516. helpArg1 = command.newHelpSpecial("Player", "player", "user.money");
  517. command.addHelpChild(helpArg1, command.newHelpInt("money", -10000000, 10000000));
  518. command.addHelpChild(helpArg0, helpArg1);
  519. command.addHelpChild(help, helpArg0);
  520. //user setmoney <player> <money>
  521. helpArg0 = command.newHelpLiteral("setmoney", "user.money");
  522. helpArg1 = command.newHelpSpecial("Player", "player", "user.money");
  523. command.addHelpChild(helpArg1, command.newHelpInt("money", -10000000, 10000000));
  524. command.addHelpChild(helpArg0, helpArg1);
  525. command.addHelpChild(help, helpArg0);
  526. command.addHelp(help);
  527. help = command.newHelp("skills", "skills");
  528. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "user.other"));
  529. command.addHelp(help);
  530. help = command.newHelp("grow", "grow");
  531. command.addHelpChild(help, command.newHelpInt("int", 0, 1000));
  532. command.addHelp(help);
  533. help = command.newHelp("news", "news");
  534. command.addHelpChild(help, command.newHelpString("text", true));
  535. command.addHelp(help);
  536. help = command.newHelp("inv", "inv");
  537. //inv ignore
  538. command.addHelpChild(help, command.newHelpLiteral("ignore"));
  539. //inv see <player>
  540. helpArg0 = command.newHelpLiteral("see");
  541. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  542. command.addHelpChild(help, helpArg0);
  543. //inv backups <player>
  544. helpArg0 = command.newHelpLiteral("backups");
  545. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  546. command.addHelpChild(help, helpArg0);
  547. //inv reload <player>
  548. helpArg0 = command.newHelpLiteral("reload");
  549. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  550. command.addHelpChild(help, helpArg0);
  551. //inv loadFrom <player> <world>
  552. helpArg0 = command.newHelpLiteral("loadFrom");
  553. helpArg1 = command.newHelpSpecial("Player", "player");
  554. command.addHelpChild(helpArg1, command.newHelpString("world", false));
  555. command.addHelpChild(helpArg0, helpArg1);
  556. command.addHelpChild(help, helpArg0);
  557. //inv saveFor <player> <world>
  558. helpArg0 = command.newHelpLiteral("saveFor");
  559. helpArg1 = command.newHelpSpecial("Player", "player");
  560. command.addHelpChild(helpArg1, command.newHelpString("world", false));
  561. command.addHelpChild(helpArg0, helpArg1);
  562. command.addHelpChild(help, helpArg0);
  563. command.addHelp(help);
  564. help = command.newHelp("warn", "warn");
  565. command.addHelpChild(help, command.newHelpSpecial("Player", "player"));
  566. command.addHelp(help);
  567. help = command.newHelp("jail", "jail");
  568. command.addHelpChild(help, command.newHelpSpecial("Player", "player"));
  569. command.addHelp(help);
  570. help = command.newHelp("unjail", "unjail");
  571. command.addHelpChild(help, command.newHelpSpecial("Player", "player"));
  572. command.addHelp(help);
  573. help = command.newHelp("friend", "friend");
  574. //friend add <player>
  575. helpArg0 = command.newHelpLiteral("add");
  576. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  577. command.addHelpChild(help, helpArg0);
  578. //friend remove <player>
  579. helpArg0 = command.newHelpLiteral("remove");
  580. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  581. command.addHelpChild(help, helpArg0);
  582. //friend list
  583. command.addHelpChild(help, command.newHelpLiteral("list"));
  584. command.addHelp(help);
  585. help = command.newHelp("sign", "sign");
  586. //sign <1-4> [text]
  587. helpArg0 = command.newHelpInt("1-4", 1, 4);
  588. command.addHelpChild(helpArg0, command.newHelpString("text", true));
  589. command.addHelpChild(help, helpArg0);
  590. //sign <copy/paste>
  591. command.addHelpChild(help, command.newHelpLiteral("copy"));
  592. command.addHelpChild(help, command.newHelpLiteral("paste"));
  593. command.addHelp(help);
  594. help = command.newHelp("speed", "speed");
  595. helpArg0 = command.newHelpInt("int", 1, 10);
  596. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "speed.other"));
  597. command.addHelpChild(help, helpArg0);
  598. command.addHelp(help);
  599. help = command.newHelp("error", "error");
  600. command.addHelpChild(help, command.newHelpLiteral("list"));
  601. command.addHelpChild(help, command.newHelpLiteral("clear"));
  602. command.addHelp(help);
  603. help = command.newHelp("mailbox", "mailbox");
  604. //mailbox show <player>
  605. helpArg0 = command.newHelpLiteral("show");
  606. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "mailbox.other"));
  607. command.addHelpChild(help, helpArg0);
  608. //mailbox send <player>
  609. helpArg0 = command.newHelpLiteral("send");
  610. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  611. command.addHelpChild(help, helpArg0);
  612. command.addHelp(help);
  613. help = command.newHelp("world", "world");
  614. //world info
  615. helpArg0 = command.newHelpLiteral("info");
  616. command.addHelpChild(helpArg0, command.newHelpString("world", false));
  617. command.addHelpChild(help, helpArg0);
  618. //world tp <world> [player]
  619. helpArg0 = command.newHelpLiteral("tp");
  620. helpArg1 = command.newHelpString("world", false);
  621. command.addHelpChild(helpArg1, command.newHelpSpecial("Player", "player"));
  622. command.addHelpChild(helpArg0, helpArg1);
  623. command.addHelpChild(help, helpArg0);
  624. //world list
  625. command.addHelpChild(help, command.newHelpLiteral("list"));
  626. //world diffi <world> <diffi>
  627. helpArg0 = command.newHelpLiteral("diffi");
  628. helpArg1 = command.newHelpString("world", false);
  629. command.addHelpChild(helpArg1, command.newHelpLiteral("PEACEFUL"));
  630. command.addHelpChild(helpArg1, command.newHelpLiteral("EASY"));
  631. command.addHelpChild(helpArg1, command.newHelpLiteral("NORMAL"));
  632. command.addHelpChild(helpArg1, command.newHelpLiteral("HARD"));
  633. command.addHelpChild(helpArg0, helpArg1);
  634. command.addHelpChild(help, helpArg0);
  635. //world setspawn
  636. helpArg0 = command.newHelpLiteral("setspawn");
  637. command.addHelpChild(help, helpArg0);
  638. command.addHelp(help);
  639. help = command.newHelp("quest", "quest");
  640. //quest see
  641. command.addHelpChild(help, command.newHelpLiteral("see"));
  642. //quest term <player>
  643. helpArg0 = command.newHelpLiteral("term");
  644. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  645. command.addHelpChild(help, helpArg0);
  646. command.addHelp(help);
  647. help = command.newHelp("pvp", "pvp");
  648. helpArg0 = command.newHelpLiteral("on");
  649. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "pvp.other"));
  650. command.addHelpChild(help, helpArg0);
  651. helpArg0 = command.newHelpLiteral("off");
  652. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "pvp.other"));
  653. command.addHelpChild(help, helpArg0);
  654. command.addHelp(help);
  655. help = command.newHelp("game", "game");
  656. command.addHelpChild(help, command.newHelpLiteral("open"));
  657. command.addHelpChild(help, command.newHelpLiteral("close"));
  658. command.addHelp(help);
  659. help = command.newHelp("party", "party");
  660. //party invite <player>
  661. helpArg0 = command.newHelpLiteral("invite");
  662. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  663. command.addHelpChild(help, helpArg0);
  664. //party accept <player>
  665. helpArg0 = command.newHelpLiteral("accept");
  666. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  667. command.addHelpChild(help, helpArg0);
  668. //party deny <player>
  669. helpArg0 = command.newHelpLiteral("deny");
  670. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  671. command.addHelpChild(help, helpArg0);
  672. //party kick <player>
  673. helpArg0 = command.newHelpLiteral("kick");
  674. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  675. command.addHelpChild(help, helpArg0);
  676. //party leave
  677. command.addHelpChild(help, command.newHelpLiteral("leave"));
  678. //party promote <player>
  679. helpArg0 = command.newHelpLiteral("promote");
  680. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  681. command.addHelpChild(help, helpArg0);
  682. //party demote <player>
  683. helpArg0 = command.newHelpLiteral("demote");
  684. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  685. command.addHelpChild(help, helpArg0);
  686. //party disband
  687. command.addHelpChild(help, command.newHelpLiteral("disband"));
  688. //party list
  689. command.addHelpChild(help, command.newHelpLiteral("list"));
  690. command.addHelp(help);
  691. help = command.newHelp("weather", "weather");
  692. //weather clear [duration]
  693. helpArg0 = command.newHelpLiteral("clear");
  694. command.addHelpChild(helpArg0, command.newHelpInt("duration", 0, 1000000));
  695. command.addHelpChild(help, helpArg0);
  696. //weather rain [duration]
  697. helpArg0 = command.newHelpLiteral("rain");
  698. command.addHelpChild(helpArg0, command.newHelpInt("duration", 0, 1000000));
  699. command.addHelpChild(help, helpArg0);
  700. //weather thunder [duration]
  701. helpArg0 = command.newHelpLiteral("thunder");
  702. command.addHelpChild(helpArg0, command.newHelpInt("duration", 0, 1000000));
  703. command.addHelpChild(help, helpArg0);
  704. command.addHelp(help);
  705. help = command.newHelp("var", "var");
  706. helpArg0 = command.newHelpInt("id", 0, 1000000);
  707. command.addHelpChild(helpArg0, command.newHelpString("varname", false));
  708. command.addHelpChild(help, helpArg0);
  709. command.addHelp(help);
  710. //A: msg <player> <message>
  711. //B: msg team <message>
  712. help = command.newHelp("msg", "msg");
  713. helpArg0_A = command.newHelpSpecial("Player", "player");
  714. helpArg0_B = command.newHelpLiteral("team");
  715. command.addHelpChild(helpArg0_A, command.newHelpString("message", true));
  716. command.addHelpChild(helpArg0_B, command.newHelpString("message", true));
  717. command.addHelpChild(help, helpArg0_A);
  718. command.addHelpChild(help, helpArg0_B);
  719. command.addHelp(help);
  720. help = command.newHelp("setservermessage", "setservermessage");
  721. command.addHelpChild(help, command.newHelpString("message", true));
  722. command.addHelp(help);
  723. help = command.newHelp("gamerule", "gamerule");
  724. addGameRuleBoolean(help, "announceAdvancements");
  725. addGameRuleBoolean(help, "commandBlockOutput");
  726. addGameRuleBoolean(help, "disableElytraMovementCheck");
  727. addGameRuleBoolean(help, "disableRaids");
  728. addGameRuleBoolean(help, "doDaylightCycle");
  729. addGameRuleBoolean(help, "doEntityDrops");
  730. addGameRuleBoolean(help, "doFireTick");
  731. addGameRuleBoolean(help, "doInsomnia");
  732. addGameRuleBoolean(help, "doImmediateRespawn");
  733. addGameRuleBoolean(help, "doLimitedCrafting");
  734. addGameRuleBoolean(help, "doMobLoot");
  735. addGameRuleBoolean(help, "doMobSpawning");
  736. addGameRuleBoolean(help, "doPatrolSpawning");
  737. addGameRuleBoolean(help, "doTileDrops");
  738. addGameRuleBoolean(help, "doTraderSpawning");
  739. addGameRuleBoolean(help, "doWeatherCycle");
  740. addGameRuleBoolean(help, "drowningDamage");
  741. addGameRuleBoolean(help, "fallDamage");
  742. addGameRuleBoolean(help, "fireDamage");
  743. addGameRuleBoolean(help, "forgiveDeadPlayers");
  744. addGameRuleBoolean(help, "freezeDamage");
  745. addGameRuleBoolean(help, "keepInventory");
  746. addGameRuleBoolean(help, "logAdminCommands");
  747. addGameRuleInt(help, "maxCommandChainLength", 0, 100000);
  748. addGameRuleInt(help, "maxEntityCramming", 0, 100);
  749. addGameRuleBoolean(help, "mobGriefing");
  750. addGameRuleInt(help, "playersSleepingPercentage", 0, 100);
  751. addGameRuleInt(help, "randomTickSpeed", 0, 4096);
  752. addGameRuleBoolean(help, "reducedDebugInfo");
  753. addGameRuleBoolean(help, "respawnBlocksExplode");
  754. addGameRuleBoolean(help, "sendCommandFeedback");
  755. addGameRuleBoolean(help, "showDeathMessages");
  756. addGameRuleBoolean(help, "spawnRadius");
  757. addGameRuleBoolean(help, "spectatorsGenerateChunks");
  758. addGameRuleBoolean(help, "universalAnger");
  759. command.addHelp(help);
  760. help = command.newHelp("potion", "potion");
  761. helpArg1 = command.newHelpInt("duration", 0, 10000);
  762. command.addHelpChild(helpArg1, command.newHelpInt("power", 0, 50));
  763. list = getPotionTypes();
  764. iter = iterator(list);
  765. while(hasNext(iter)) {
  766. potion_name = next(iter);
  767. addPotionName(help, helpArg1, potion_name);
  768. }
  769. command.addHelp(help);
  770. help = command.newHelp("clan", "clan");
  771. //clan invite <name>
  772. helpArg0 = command.newHelpLiteral("invite");
  773. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  774. command.addHelpChild(help, helpArg0);
  775. //clan accept <id/name/tag>
  776. helpArg0 = command.newHelpLiteral("invite");
  777. command.addHelpChild(helpArg0, command.newHelpInt("id", 1, 500));
  778. command.addHelpChild(helpArg0, command.newHelpString("name", false));
  779. command.addHelpChild(helpArg0, command.newHelpString("tag", false));
  780. command.addHelpChild(help, helpArg0);
  781. //clan info [id/name/tag]
  782. helpArg0 = command.newHelpLiteral("info");
  783. command.addHelpChild(helpArg0, command.newHelpInt("id", 1, 500));
  784. command.addHelpChild(helpArg0, command.newHelpString("name", false));
  785. command.addHelpChild(helpArg0, command.newHelpString("tag", false));
  786. command.addHelpChild(help, helpArg0);
  787. //clan create <name> <tag>
  788. helpArg0 = command.newHelpLiteral("create");
  789. helpArg1 = command.newHelpString("name", false);
  790. command.addHelpChild(helpArg1, command.newHelpString("false", false));
  791. command.addHelpChild(helpArg0, helpArg1);
  792. command.addHelpChild(help, helpArg0);
  793. //clan kick <name>
  794. helpArg0 = command.newHelpLiteral("kick");
  795. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  796. command.addHelpChild(help, helpArg0);
  797. //clan leader <name>
  798. helpArg0 = command.newHelpLiteral("leader");
  799. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  800. command.addHelpChild(help, helpArg0);
  801. //clan mod <name>
  802. helpArg0 = command.newHelpLiteral("mod");
  803. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  804. command.addHelpChild(help, helpArg0);
  805. //clan degrade <name>
  806. helpArg0 = command.newHelpLiteral("degrade");
  807. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  808. command.addHelpChild(help, helpArg0);
  809. //clan leave
  810. command.addHelpChild(help, command.newHelpLiteral("leave"));
  811. //clan rename <name> <tag>
  812. helpArg0 = command.newHelpLiteral("rename");
  813. helpArg1 = command.newHelpString("name", false);
  814. command.addHelpChild(helpArg1, command.newHelpString("false", false));
  815. command.addHelpChild(helpArg0, helpArg1);
  816. command.addHelpChild(help, helpArg0);
  817. //clan disband
  818. command.addHelpChild(help, command.newHelpLiteral("disband"));
  819. //clan msg <message>
  820. helpArg0 = command.newHelpLiteral("msg");
  821. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  822. command.addHelpChild(help, helpArg0);
  823. //clan mail <message>
  824. helpArg0 = command.newHelpLiteral("mail");
  825. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  826. command.addHelpChild(help, helpArg0);
  827. //clan shout <message>
  828. helpArg0 = command.newHelpLiteral("shout");
  829. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  830. command.addHelpChild(help, helpArg0);
  831. //clan deposit <money>
  832. helpArg0 = command.newHelpLiteral("deposit");
  833. command.addHelpChild(helpArg0, command.newHelpInt("money", 0, 1000));
  834. command.addHelpChild(help, helpArg0);
  835. //clan withdraw <money>
  836. helpArg0 = command.newHelpLiteral("withdraw");
  837. command.addHelpChild(helpArg0, command.newHelpInt("money", 0, 1000));
  838. command.addHelpChild(help, helpArg0);
  839. //clan party
  840. command.addHelpChild(help, command.newHelpLiteral("party"));
  841. //clan setspawn
  842. command.addHelpChild(help, command.newHelpLiteral("setspawn"));
  843. //clan spawn
  844. command.addHelpChild(help, command.newHelpLiteral("spawn"));
  845. //clan list
  846. command.addHelpChild(help, command.newHelpLiteral("list"));
  847. command.addHelp(help);
  848. help = command.newHelp("shop", "shop");
  849. //shop create
  850. command.addHelpChild(help, command.newHelpLiteral("create"));
  851. //shop remove
  852. helpArg0 = command.newHelpLiteral("remove");
  853. command.addHelpChild(helpArg0, command.newHelpLiteral("buy"));
  854. command.addHelpChild(helpArg0, command.newHelpLiteral("sell"));
  855. command.addHelpChild(help, helpArg0);
  856. //shop buy <amount> <price>
  857. helpArg0 = command.newHelpLiteral("buy");
  858. helpArg1 = command.newHelpInt("amount", 0, 1000);
  859. command.addHelpChild(helpArg1, command.newHelpInt("price", 0, 10000));
  860. command.addHelpChild(helpArg0, helpArg1);
  861. command.addHelpChild(help, helpArg0);
  862. //shop sell <amount> <price>
  863. helpArg0 = command.newHelpLiteral("sell");
  864. helpArg1 = command.newHelpInt("amount", 0, 1000);
  865. command.addHelpChild(helpArg1, command.newHelpInt("price", 0, 10000));
  866. command.addHelpChild(helpArg0, helpArg1);
  867. command.addHelpChild(help, helpArg0);
  868. command.addHelp(help);
  869. help = command.newHelp("setmessage", "setmessage");
  870. //setmessage info
  871. command.addHelpChild(help, command.newHelpLiteral("info"));
  872. //setmessage join <message>
  873. helpArg0 = command.newHelpLiteral("join");
  874. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  875. command.addHelpChild(help, helpArg0);
  876. //setmessage leave <message>
  877. helpArg0 = command.newHelpLiteral("leave");
  878. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  879. command.addHelpChild(help, helpArg0);
  880. //setmessage death <message>
  881. helpArg0 = command.newHelpLiteral("death");
  882. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  883. command.addHelpChild(help, helpArg0);
  884. //setmessage delete <player>
  885. helpArg0 = command.newHelpLiteral("delete");
  886. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "setmessage.delete"));
  887. command.addHelpChild(help, helpArg0);
  888. command.addHelp(help);
  889. help = command.newHelp("tip", "tip");
  890. //tipp list
  891. helpArg0 = command.newHelpLiteral("list");
  892. command.addHelpChild(help, helpArg0);
  893. //tipp add <tipp> <text>
  894. helpArg0 = command.newHelpLiteral("add");
  895. helpArg1 = command.newHelpString("tip", false);
  896. command.addHelpChild(helpArg1, command.newHelpString("text", true));
  897. command.addHelpChild(helpArg0, helpArg1);
  898. command.addHelpChild(help, helpArg0);
  899. //tipp remove <tipp>
  900. helpArg0 = command.newHelpLiteral("remove");
  901. command.addHelpChild(helpArg0, command.newHelpString("tip", false));
  902. command.addHelpChild(help, helpArg0);
  903. //tipp <tipp> [player]
  904. helpArg0 = command.newHelpString("tip", false);
  905. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player"));
  906. command.addHelpChild(help, helpArg0);
  907. //tipp loop <tip> <boolean>
  908. helpArg0 = command.newHelpLiteral("loop");
  909. helpArg1 = command.newHelpString("tip", false);
  910. command.addHelpChild(helpArg1, command.newHelpBool("boolean"));
  911. command.addHelpChild(helpArg0, helpArg1);
  912. command.addHelpChild(help, helpArg0);
  913. command.addHelp(help);
  914. help = command.newHelp("support", "support");
  915. command.addHelpChild(help, command.newHelpString("message", true));
  916. command.addHelp(help);
  917. help = command.newHelp("mute", "mute");
  918. helpArg0 = command.newHelpSpecial("Player", "player");
  919. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  920. command.addHelpChild(help, helpArg0);
  921. command.addHelp(help);
  922. help = command.newHelp("vote", "vote");
  923. command.addHelpChild(help, command.newHelpSpecial("Player", "player", "user.other"));
  924. command.addHelp(help);
  925. help = command.newHelp("ticket", "ticket");
  926. //ticket list
  927. command.addHelpChild(help, command.newHelpLiteral("list"));
  928. //ticket get [id]
  929. helpArg0 = command.newHelpLiteral("get");
  930. command.addHelpChild(helpArg0, command.newHelpInt("id", 1, 1000));
  931. command.addHelpChild(help, helpArg0);
  932. //ticket finish
  933. command.addHelpChild(help, command.newHelpLiteral("finish"));
  934. //ticket release
  935. command.addHelpChild(help, command.newHelpLiteral("release"));
  936. //ticket note <message>
  937. helpArg0 = command.newHelpLiteral("note");
  938. command.addHelpChild(helpArg0, command.newHelpString("message", true));
  939. command.addHelpChild(help, helpArg0);
  940. command.addHelp(help);
  941. help = command.newHelp("dev", "dev");
  942. //dev boost
  943. command.addHelpChild(help, command.newHelpLiteral("boost"));
  944. //dev logo
  945. command.addHelpChild(help, command.newHelpLiteral("logo"));
  946. //dev yeet <strength>
  947. helpArg0 = command.newHelpLiteral("yeet");
  948. command.addHelpChild(helpArg0, command.newHelpInt("strength", 1, 10000000000000));
  949. command.addHelpChild(help, helpArg0);
  950. //dev debug <list/clear>
  951. helpArg0 = command.newHelpLiteral("debug");
  952. command.addHelpChild(helpArg0, command.newHelpLiteral("list"));
  953. command.addHelpChild(helpArg0, command.newHelpLiteral("clear"));
  954. command.addHelpChild(help, helpArg0);
  955. //dev entities <world>
  956. helpArg0 = command.newHelpLiteral("entities");
  957. command.addHelpChild(helpArg0, command.newHelpString("world", false));
  958. command.addHelpChild(help, helpArg0);
  959. command.addHelp(help);
  960. command.sendHelp();
  961. }
  962. function addPotionName(help, helpArg1, potion_name) {
  963. helpArg0 = command.newHelpLiteral(potion_name);
  964. command.addHelpChild(helpArg0, helpArg1);
  965. command.addHelpChild(help, helpArg0);
  966. }
  967. function addGameRuleBoolean(help, gamerule) {
  968. helpArg0 = command.newHelpLiteral(gamerule);
  969. command.addHelpChild(helpArg0, command.newHelpBool("boolean"));
  970. command.addHelpChild(help, helpArg0);
  971. }
  972. function addGameRuleInt(help, gamerule, from, to) {
  973. helpArg0 = command.newHelpLiteral(gamerule);
  974. command.addHelpChild(helpArg0, command.newHelpInt("value", from, to));
  975. command.addHelpChild(help, helpArg0);
  976. }
  977. function commandhelp.add(command) {
  978. help = command.newHelp(command, command);
  979. command.addHelp(help);
  980. return help;
  981. }
  982. function commandhelp.addChildString(command, arg0, bool) {
  983. help = command.newHelp(command, command);
  984. command.addHelpChild(help, command.newHelpString(arg0, bool));
  985. command.addHelp(help);
  986. }
  987. function commandhelp.addChildPlayer(command) {
  988. help = command.newHelp(command, command);
  989. command.addHelpChild(help, command.newHelpSpecial("Player", "player"));
  990. command.addHelp(help);
  991. }
  992. function commandhelp.addChildBool(command, arg0) {
  993. help = command.newHelp(command, command);
  994. command.addHelpChild(help, command.newHelpBool(arg0));
  995. command.addHelp(help);
  996. }
  997. function commandhelp.addAlias(alias, command, helpArg0) {
  998. help = command.newHelp(alias, command);
  999. command.addHelpChild(help, helpArg0);
  1000. command.addHelp(help);
  1001. }
  1002. function addScriptHelp(command) {
  1003. help = command.newHelp(command, "script");
  1004. //script start <scripts>
  1005. helpArg0 = command.newHelpLiteral("start");
  1006. command.addHelpChild(helpArg0, command.newHelpString("scrips...", true));
  1007. command.addHelpChild(help, helpArg0);
  1008. //script s <scripts>
  1009. helpArg0 = command.newHelpLiteral("s");
  1010. command.addHelpChild(helpArg0, command.newHelpString("scrips...", true));
  1011. command.addHelpChild(help, helpArg0);
  1012. //script see
  1013. command.addHelpChild(help, command.newHelpLiteral("see"));
  1014. //script term <id/all>
  1015. helpArg0 = command.newHelpLiteral("term");
  1016. command.addHelpChild(helpArg0, command.newHelpLiteral("all"));
  1017. command.addHelpChild(helpArg0, command.newHelpInt("id", 0, 1000000));
  1018. command.addHelpChild(help, helpArg0);
  1019. //script t <id/all>
  1020. helpArg0 = command.newHelpLiteral("t");
  1021. command.addHelpChild(helpArg0, command.newHelpLiteral("all"));
  1022. command.addHelpChild(helpArg0, command.newHelpInt("id", 0, 1000000));
  1023. command.addHelpChild(help, helpArg0);
  1024. command.addHelp(help);
  1025. }
  1026. function addHomeHelp(command) {
  1027. help = command.newHelp(command, "home");
  1028. //home set
  1029. helpArg0 = command.newHelpLiteral("set");
  1030. command.addHelpChild(helpArg0, command.newHelpString("name", false));
  1031. command.addHelpChild(help, helpArg0);
  1032. //home delete
  1033. helpArg0 = command.newHelpLiteral("delete");
  1034. helpArg1 = command.newHelpString("name", false);
  1035. command.addHelpChild(helpArg1, command.newHelpSpecial("Player", "player", "home.other"));
  1036. command.addHelpChild(helpArg0, helpArg1);
  1037. command.addHelpChild(help, helpArg0);
  1038. //home list
  1039. helpArg0 = command.newHelpLiteral("list");
  1040. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "home.other"));
  1041. command.addHelpChild(help, helpArg0);
  1042. //home <name>
  1043. helpArg0 = command.newHelpString("name", false);
  1044. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "home.other"));
  1045. command.addHelpChild(help, helpArg0);
  1046. command.addHelp(help);
  1047. }
  1048. function addStatsGameHelp(help, game) {
  1049. helpArg0 = command.newHelpLiteral(game);
  1050. command.addHelpChild(helpArg0, command.newHelpLiteral("top"));
  1051. command.addHelpChild(helpArg0, command.newHelpInt("rank", 1, 1000));
  1052. helpArg1 = command.newHelpSpecial("Player", "player");
  1053. command.addHelpChild(helpArg1, command.newHelpLiteral("remove", "stats.remove"));
  1054. command.addHelpChild(helpArg0, helpArg1);
  1055. command.addHelpChild(help, helpArg0);
  1056. }
  1057. function addAsHelp(command) {
  1058. help = command.newHelp(command, "armorstand");
  1059. //as name <name>
  1060. helpArg0 = command.newHelpLiteral("name");
  1061. command.addHelpChild(helpArg0, command.newHelpString("name", true));
  1062. command.addHelpChild(help, helpArg0);
  1063. //as visible <true/false>3
  1064. addAsBoolHelp(help, "visible");
  1065. //as arms <true/false>
  1066. addAsBoolHelp(help, "arms");
  1067. //as small <true/false>
  1068. addAsBoolHelp(help, "small");
  1069. //as baseplate <true/false>
  1070. addAsBoolHelp(help, "baseplate");
  1071. //as marker <true/false>
  1072. addAsBoolHelp(help, "marker");
  1073. //as move <true/false>
  1074. addAsBoolHelp(help, "move");
  1075. //as tick <true/false>
  1076. addAsBoolHelp(help, "tick");
  1077. //as setpose <bodypart> <x> <y> <z>
  1078. helpArg0 = command.newHelpLiteral("setpose");
  1079. helpArg2 = command.newHelpInt("x", -360, 360);
  1080. helpArg3 = command.newHelpInt("y", -360, 360);
  1081. helpArg4 = command.newHelpInt("z", -360, 360);
  1082. command.addHelpChild(helpArg3, helpArg4);
  1083. command.addHelpChild(helpArg2, helpArg3);
  1084. addAsBodypartHelp(help, helpArg0, helpArg2, "head");
  1085. addAsBodypartHelp(help, helpArg0, helpArg2, "body");
  1086. addAsBodypartHelp(help, helpArg0, helpArg2, "leftarm");
  1087. addAsBodypartHelp(help, helpArg0, helpArg2, "rightarm");
  1088. addAsBodypartHelp(help, helpArg0, helpArg2, "leftleg");
  1089. addAsBodypartHelp(help, helpArg0, helpArg2, "rightleg");
  1090. //as addpose <bodypart> <x> <y> <z>
  1091. helpArg0 = command.newHelpLiteral("addpose");
  1092. helpArg2 = command.newHelpInt("x", -360, 360);
  1093. helpArg3 = command.newHelpInt("y", -360, 360);
  1094. helpArg4 = command.newHelpInt("z", -360, 360);
  1095. command.addHelpChild(helpArg3, helpArg4);
  1096. command.addHelpChild(helpArg2, helpArg3);
  1097. addAsBodypartHelp(help, helpArg0, helpArg2, "head");
  1098. addAsBodypartHelp(help, helpArg0, helpArg2, "body");
  1099. addAsBodypartHelp(help, helpArg0, helpArg2, "leftarm");
  1100. addAsBodypartHelp(help, helpArg0, helpArg2, "rightarm");
  1101. addAsBodypartHelp(help, helpArg0, helpArg2, "leftleg");
  1102. addAsBodypartHelp(help, helpArg0, helpArg2, "rightleg");
  1103. command.addHelp(help);
  1104. }
  1105. function addAsBoolHelp(help, subcommand) {
  1106. helpArg0 = command.newHelpLiteral(subcommand);
  1107. command.addHelpChild(helpArg0, command.newHelpBool("boolean"));
  1108. command.addHelpChild(help, helpArg0);
  1109. }
  1110. function addAsBodypartHelp(help, helpArg0, helpArg2, bodypart) {
  1111. helpArg1 = command.newHelpLiteral(bodypart);
  1112. command.addHelpChild(helpArg1, helpArg2);
  1113. command.addHelpChild(helpArg0, helpArg1);
  1114. command.addHelpChild(help, helpArg0);
  1115. }
  1116. function addPlotHelp(command) {
  1117. help = command.newHelp(command, "plot");
  1118. //plot info
  1119. command.addHelpChild(help, command.newHelpLiteral("info"));
  1120. command.addHelpChild(help, command.newHelpLiteral("i"));
  1121. //plot pos1/pos2
  1122. command.addHelpChild(help, command.newHelpLiteral("pos1"));
  1123. command.addHelpChild(help, command.newHelpLiteral("pos2"));
  1124. //plot create/create3D
  1125. command.addHelpChild(help, command.newHelpLiteral("create"));
  1126. command.addHelpChild(help, command.newHelpLiteral("create3D"));
  1127. //plot remove
  1128. helpArg0 = command.newHelpLiteral("remove");
  1129. command.addHelpChild(helpArg0, command.newHelpInt("id", 0, 10000));
  1130. command.addHelpChild(help, helpArg0);
  1131. //plot name <name>
  1132. helpArg0 = command.newHelpLiteral("name");
  1133. command.addHelpChild(helpArg0, command.newHelpString("name", true));
  1134. helpArg1 = command.newHelpInt("id", 0, 10000);
  1135. command.addHelpChild(helpArg1, command.newHelpString("name", true));
  1136. command.addHelpChild(helpArg0, helpArg1);
  1137. command.addHelpChild(help, helpArg0);
  1138. //plot share <name>
  1139. helpArg0 = command.newHelpLiteral("share");
  1140. helpArg1 = command.newHelpSpecial("Player", "player");
  1141. command.addHelpChild(helpArg1, command.newHelpInt("id", 0, 10000));
  1142. command.addHelpChild(helpArg0, helpArg1);
  1143. command.addHelpChild(help, helpArg0);
  1144. //plot kick <name>
  1145. helpArg0 = command.newHelpLiteral("kick");
  1146. helpArg1 = command.newHelpSpecial("Player", "player");
  1147. command.addHelpChild(helpArg1, command.newHelpInt("id", 0, 10000));
  1148. command.addHelpChild(helpArg0, helpArg1);
  1149. command.addHelpChild(help, helpArg0);
  1150. //plot raise
  1151. command.addHelpChild(help, command.newHelpLiteral("raise"));
  1152. //plot leader <name>
  1153. helpArg0 = command.newHelpLiteral("leader");
  1154. helpArg1 = command.newHelpSpecial("Player", "player");
  1155. command.addHelpChild(helpArg1, command.newHelpInt("id", 0, 10000));
  1156. command.addHelpChild(helpArg0, helpArg1);
  1157. command.addHelpChild(help, helpArg0);
  1158. //plot mod <name>
  1159. helpArg0 = command.newHelpLiteral("mod");
  1160. helpArg1 = command.newHelpSpecial("Player", "player");
  1161. command.addHelpChild(helpArg1, command.newHelpInt("id", 0, 10000));
  1162. command.addHelpChild(helpArg0, helpArg1);
  1163. command.addHelpChild(help, helpArg0);
  1164. //plot chest <name>
  1165. helpArg0 = command.newHelpLiteral("chest");
  1166. helpArg1 = command.newHelpSpecial("Player", "player");
  1167. command.addHelpChild(helpArg1, command.newHelpInt("id", 0, 10000));
  1168. command.addHelpChild(helpArg0, helpArg1);
  1169. command.addHelpChild(help, helpArg0);
  1170. //plot sell <price>
  1171. helpArg0 = command.newHelpLiteral("sell");
  1172. command.addHelpChild(helpArg0, command.newHelpInt("price", 1, 10000));
  1173. command.addHelpChild(help, helpArg0);
  1174. //plot moreinfo
  1175. command.addHelpChild(help, command.newHelpLiteral("moreinfo", "plot.moreinfo"));
  1176. //plot list <name>
  1177. helpArg0 = command.newHelpLiteral("list");
  1178. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "plot.moreinfo"));
  1179. command.addHelpChild(help, helpArg0);
  1180. //plot flags <int> <boolean>
  1181. //plot listall
  1182. command.addHelpChild(help, command.newHelpLiteral("listall"));
  1183. //plot flags <int> <boolean>
  1184. helpArg0 = command.newHelpLiteral("flags");
  1185. helpArg1 = command.newHelpInt("int", 1, 1000);
  1186. command.addHelpChild(helpArg1, command.newHelpBool("boolean"));
  1187. command.addHelpChild(helpArg0, helpArg1);
  1188. command.addHelpChild(help, helpArg0);
  1189. //plot expand <value>
  1190. helpArg0 = command.newHelpLiteral("expand");
  1191. helpArg1 = command.newHelpInt("value", 1, 1000);
  1192. helpArg3 = command.newHelpInt("id", 1, 10000);
  1193. helpArg2 = command.newHelpLiteral("north");
  1194. command.addHelpChild(helpArg2, helpArg3);
  1195. command.addHelpChild(helpArg1, helpArg2);
  1196. helpArg2 = command.newHelpLiteral("east");
  1197. command.addHelpChild(helpArg2, helpArg3);
  1198. command.addHelpChild(helpArg1, helpArg2);
  1199. helpArg2 = command.newHelpLiteral("south");
  1200. command.addHelpChild(helpArg2, helpArg3);
  1201. command.addHelpChild(helpArg1, helpArg2);
  1202. helpArg2 = command.newHelpLiteral("west");
  1203. command.addHelpChild(helpArg2, helpArg3);
  1204. command.addHelpChild(helpArg1, helpArg2);
  1205. command.addHelpChild(helpArg0, helpArg1);
  1206. command.addHelpChild(help, helpArg0);
  1207. //plot move <value>
  1208. helpArg0 = command.newHelpLiteral("move");
  1209. helpArg1 = command.newHelpInt("value", 1, 1000);
  1210. helpArg3 = command.newHelpInt("id", 1, 10000);
  1211. helpArg2 = command.newHelpLiteral("north");
  1212. command.addHelpChild(helpArg2, helpArg3);
  1213. command.addHelpChild(helpArg1, helpArg2);
  1214. helpArg2 = command.newHelpLiteral("east");
  1215. command.addHelpChild(helpArg2, helpArg3);
  1216. command.addHelpChild(helpArg1, helpArg2);
  1217. helpArg2 = command.newHelpLiteral("south");
  1218. command.addHelpChild(helpArg2, helpArg3);
  1219. command.addHelpChild(helpArg1, helpArg2);
  1220. helpArg2 = command.newHelpLiteral("west");
  1221. command.addHelpChild(helpArg2, helpArg3);
  1222. command.addHelpChild(helpArg1, helpArg2);
  1223. command.addHelpChild(helpArg0, helpArg1);
  1224. command.addHelpChild(help, helpArg0);
  1225. command.addHelp(help);
  1226. }
  1227. function addGmHelp(command) {
  1228. help = command.newHelp(command, "gamemode");
  1229. helpArg0 = command.newHelpLiteral("adventure");
  1230. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1231. command.addHelpChild(help, helpArg0);
  1232. helpArg0 = command.newHelpLiteral("creative");
  1233. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1234. command.addHelpChild(help, helpArg0);
  1235. helpArg0 = command.newHelpLiteral("spectator");
  1236. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1237. command.addHelpChild(help, helpArg0);
  1238. helpArg0 = command.newHelpLiteral("survival");
  1239. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1240. command.addHelpChild(help, helpArg0);
  1241. helpArg0 = command.newHelpLiteral("a");
  1242. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1243. command.addHelpChild(help, helpArg0);
  1244. helpArg0 = command.newHelpLiteral("c");
  1245. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1246. command.addHelpChild(help, helpArg0);
  1247. helpArg0 = command.newHelpLiteral("w");
  1248. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1249. command.addHelpChild(help, helpArg0);
  1250. helpArg0 = command.newHelpLiteral("s");
  1251. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1252. command.addHelpChild(help, helpArg0);
  1253. helpArg0 = command.newHelpInt("0-3", 0, 3);
  1254. command.addHelpChild(helpArg0, command.newHelpSpecial("Player", "player", "gamemode.other"));
  1255. command.addHelpChild(help, helpArg0);
  1256. command.addHelp(help);
  1257. }
  1258. function addDtHelp(command) {
  1259. help = command.newHelp(command, "datatools");
  1260. //datatools item-flag <name>
  1261. helpArg0 = command.newHelpLiteral("item-flag");
  1262. item_flags = getItemFlags();
  1263. iter = iterator(item_flags);
  1264. while(hasNext(iter)) {
  1265. command.addHelpChild(helpArg0, command.newHelpLiteral(next(iter)));
  1266. }
  1267. command.addHelpChild(help, helpArg0);
  1268. //datatools item-attribute <attribute> <slot> <double> <op>
  1269. helpArg0 = command.newHelpLiteral("item-attribute");
  1270. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_ARMOR"));
  1271. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_ARMOR_TOUGHNESS"));
  1272. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_ATTACK_DAMAGE"));
  1273. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_ATTACK_KNOCKBACK"));
  1274. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_ATTACK_SPEED"));
  1275. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_FLYING_SPEED"));
  1276. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_FOLLOW_RANGE"));
  1277. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_KNOCKBACK_RESISTANCE"));
  1278. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_LUCK"));
  1279. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_MAX_HEALTH"));
  1280. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("GENERIC_MOVEMENT_SPEED"));
  1281. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("HORSE_JUMP_STRENGTH"));
  1282. command.addHelpChild(helpArg0, addDtAttributeAttributHelp("ZOMBIE_SPAWN_REINFORCEMENTS"));
  1283. command.addHelpChild(help, helpArg0);
  1284. //datatools entity-hide
  1285. command.addHelpChild(help, command.newHelpLiteral("entity-hide"));
  1286. //datatools entity-show
  1287. command.addHelpChild(help, command.newHelpLiteral("entity-show"));
  1288. //datatools frame-hide
  1289. command.addHelpChild(help, command.newHelpLiteral("frame-hide"));
  1290. //datatools frame-show
  1291. command.addHelpChild(help, command.newHelpLiteral("frame-show"));
  1292. //datatools entity-name <name>
  1293. helpArg0 = command.newHelpLiteral("entity-name");
  1294. helpArg1 = command.newHelpString("name", true);
  1295. command.addHelpChild(helpArg0, helpArg1);
  1296. command.addHelpChild(help, helpArg0);
  1297. //datatools name-visibility <name>
  1298. helpArg0 = command.newHelpLiteral("name-visibility");
  1299. command.addHelpChild(helpArg0, command.newHelpBool("boolean"));
  1300. command.addHelpChild(help, helpArg0);
  1301. //datatools item-name <name>
  1302. helpArg0 = command.newHelpLiteral("item-name");
  1303. helpArg1 = command.newHelpString("name", true);
  1304. command.addHelpChild(helpArg0, helpArg1);
  1305. command.addHelpChild(help, helpArg0);
  1306. //datatools entity-print
  1307. command.addHelpChild(help, command.newHelpLiteral("entity-print"));
  1308. //datatools item-lore <line> <lore>
  1309. helpArg0 = command.newHelpLiteral("item-lore");
  1310. command.addHelpChild(helpArg0, command.newHelpString("lore", true));
  1311. command.addHelpChild(help, helpArg0);
  1312. command.addHelp(help);
  1313. }
  1314. function addDtAttributeAttributHelp(attribut) {
  1315. helpArg1 = command.newHelpLiteral(attribut);
  1316. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("HAND"));
  1317. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("OFF_HAND"));
  1318. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("HEAD"));
  1319. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("CHEST"));
  1320. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("LEGS"));
  1321. command.addHelpChild(helpArg1, addDtAttributeSlotHelp("FEET"));
  1322. return helpArg1;
  1323. }
  1324. function addDtAttributeSlotHelp(slot) {
  1325. helpArg2 = command.newHelpLiteral(slot);
  1326. helpArg3 = command.newHelpInt("double", 0, 1000);
  1327. command.addHelpChild(helpArg3, command.newHelpLiteral("ADD_NUMBER"));
  1328. command.addHelpChild(helpArg3, command.newHelpLiteral("ADD_SCALAR"));
  1329. command.addHelpChild(helpArg3, command.newHelpLiteral("MULTIPLY_SCALAR_1"));
  1330. command.addHelpChild(helpArg2, helpArg3);
  1331. return helpArg2;
  1332. }