Well...as to seeing how some people might think that Stormrider's RuneFusion is a bit complicated, i have decided on posting a few tuts on how to some stuff. These wont be really significant in anyway, just some simple how-to tuts.
--------------------------------------------------------------------------------------------------------------------------
Purpose: To teach the way of adding commands in RuneFusion.
Difficulty: 2/10
Classes Modified: CommandsHandlers.java
Classes Added: Varies, depending on name of the command.
Tested Server: RuneFusion FINAL
Note: Im sorry if this was already posted, i didnt see it on here if it was.
Procedure:
Step 1: Open the file called CommandHandlers.java and look for this:
Code:
commands.put("char", new Char());
and under that add this:
Code:
commands.put("COMMAND_NAME", new COMMAND_FILE_NAME());
to add more commands just add more of the above with the appropriate fields inputted (that a word?) I recommend putting the file name the same as the command so it doesnt get confusing.
Step 2: Next create a new Java file and put this in it:
(code corrected by Stormrider)
Code:
package net.runefusion.player.commands;
import net.runefusion.player.Player;
public class COMMAND_FILE_NAME implements CommandHandler {
public void parse(Player player, String command) {
// command code should be in here
}
}
Now, just replace the COMMAND_FILE_NAME with what you had in step 1.
Thats all. If you need help, just PM me or ask here. I prefer you ask here.
If i forgot something, then please lemme know...rawr.
Credits:
90% RuneFusion Team
10% Me for posting how to add