u_cmdhelp.txt 61 KB

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