- Joined
- Oct 6, 2009
- Messages
- 150
- Reaction score
- 35
Command List Compiler / @commands command maker [v1.2]
Howdy guys. Isaac here.
I was doing some stuff for the server I develop, and I realized we didn't have a command list... And we have a lot of commands, so it would take a while to compile one manually.
So I decided to make a command list compiling program that will take your raw Commands.java file and outputs the full list of commands.
LINK:
UPDATES:
v1.0:
Initial release.
v1.1:
Added a file>open option so you can browse over to your command file
added a file>save option so you can save your command list directly without copy/pasting
added some settings to make the results more customizeable and adaptable to other sources, or sources customized to use different player/donor command methods as well as different prefixes.
Made it so that the contents of the textbox don't get reset by default, unless you're entering the exact same thing twice. (Try not to double click the button if you're using multiple files.)
Added a manual reset button.
v1.2:
Added an option that will create a command to list the commands. That sounded redundant...
Added more customizability in the "other options" menu item, including a way to make it more friendly to prefix-including sources.
INSTRUCTIONS (can also be found in the program itself):
MORE INFO:
This program is made for MoopleDev, although not exclusively for it.
In theory, it should work for everything, although it is untested for anything other than MoopleDev.
Here are some problems that could arise, and solutions (when there are any):
Some of these things will be completely fixed if/when I choose to release a new version.
FAQ (not really, but I imagine I might get asked some day if I don't do this)
Q: When I load my commands class from a file, the formatting goes screwy. Will this effect the output?
A: No.
Q: Will compiling the list for a specific file overwrite the output that's already in the box?
A: Not unless you're submitting the same file twice in a row, in which case it will.
Q: Why did you choose to make this program?
A: I got bored.
Until then, peace out.
P.S. For all you foreign bast- ermm, cupcakes out there who know technical terms but not the alternate meaning of compile, don't get mad at me for using the wrong terminology. To compile something is to put a bunch of things together into one final product, so it is absolutely truthful to claim that this program compiles a list of commands.
Howdy guys. Isaac here.
I was doing some stuff for the server I develop, and I realized we didn't have a command list... And we have a lot of commands, so it would take a while to compile one manually.
So I decided to make a command list compiling program that will take your raw Commands.java file and outputs the full list of commands.
LINK:
To view the content, you need to sign in or register
To view the content, you need to sign in or register
UPDATES:
v1.0:
Initial release.
v1.1:
Added a file>open option so you can browse over to your command file
added a file>save option so you can save your command list directly without copy/pasting
added some settings to make the results more customizeable and adaptable to other sources, or sources customized to use different player/donor command methods as well as different prefixes.
Made it so that the contents of the textbox don't get reset by default, unless you're entering the exact same thing twice. (Try not to double click the button if you're using multiple files.)
Added a manual reset button.
v1.2:
Added an option that will create a command to list the commands. That sounded redundant...
Added more customizability in the "other options" menu item, including a way to make it more friendly to prefix-including sources.
INSTRUCTIONS (can also be found in the program itself):
- Open your command.java (file>open) or paste it into the top box
- (unnecessary if you used file > open) Press compile button
- Click the button that best meets your needs
- Wait for it to compile the commands list
- Save the output (file > save) or copy it to wherever you want
- Profit
MORE INFO:
This program is made for MoopleDev, although not exclusively for it.
In theory, it should work for everything, although it is untested for anything other than MoopleDev.
Here are some problems that could arise, and solutions (when there are any):
- If you're using a source that has multiple files for the commands, putting them in one by one should work fine, although the formatting may be questionable.
- If your methods for Player commands and Donor commands (if you have them) do not contain the words Player and Donor/Donator respectively, you need to go to Settings>Prefix settings and change the keywords, or they'll end up with the wrong prefix (usually !)
- If you don't use #commands for donors, go to Prefix Settings to change the donor commands prefix
- If your source checks for commands with the prefix included, go to other settings and uncheck "append prefix", or you'll end up with the prefix twice.
- By default, command methods start with 'execute'. If yours don't, the names of the sections will end up screwy. Change ur methods plz.
- This program checks for certain features in your code. If you use methods other than .equals() and .equalsIgnoreCase() to check commands, you should probably get used to using it, because it's most practical. Oh, and the commands won't be detected at all, so you'll have a blank output.

Some of these things will be completely fixed if/when I choose to release a new version.
FAQ (not really, but I imagine I might get asked some day if I don't do this)
Q: When I load my commands class from a file, the formatting goes screwy. Will this effect the output?
A: No.
Q: Will compiling the list for a specific file overwrite the output that's already in the box?
A: Not unless you're submitting the same file twice in a row, in which case it will.
Q: Why did you choose to make this program?
A: I got bored.
Until then, peace out.
~Isaac~
P.S. For all you foreign bast- ermm, cupcakes out there who know technical terms but not the alternate meaning of compile, don't get mad at me for using the wrong terminology. To compile something is to put a bunch of things together into one final product, so it is absolutely truthful to claim that this program compiles a list of commands.
Last edited:


