- Joined
- Jul 22, 2008
- Messages
- 573
- Reaction score
- 0
this guide is wrong, hope he can improve it.
I don't get how this will work for people. It compiles entirely wrong. Theres alot of elements missing to what is posted
No you just failed. I get no compiling errors.
I don't get any errors, but none of the commands work o.o
Your an idiot. How did I "Just Fail". Theres other people getting the same exact errors as I am. Using a different compiler isn't going to solve the problem because there is obviously something wrong, and that's why NetBeans shows you the damn errors.
To get the commands to work, put them in commandprocessor.java or else it will mess up.I don't get how this will work for people. It compiles entirely wrong. Theres alot of elements missing to what is posted
try {
processCommandInternal(c, mc, true, true, command);
}
try {
processCommandInternal(c, mc, true, true, true, command);
}
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, boolean donator, String line) {
private static boolean processCommandInternal(MapleClient c, MessageCallback mc, boolean isGM, boolean Intern, boolean donator, String line) {
Intern = c.getPlayer().isIntern();
ChannelServer cserv = c.getChannelServer();
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@' || line.charAt(0) == '#' && donator)
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@')
if (line.charAt(0) == '!' && isGM || line.charAt(0) =='@' || line.charAt(0) == '$' && Intern || line.charAt(0) == '#' && donator)
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), line);
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), c.getPlayer().isIntern(), line);
return processCommandInternal(c, new ServernoticeMapleClientMessageCallback(c), c.getPlayer().isGM(), c.getPlayer().isIntern(), c.getPlayer().isDonator(), line);
if (line.charAt(0) == '!' && isIntern || line.charAt(0) == '#') {
Code:if (line.charAt(0) == '!' && isIntern || line.charAt(0) == '#') {
Doesnt that mean that if the user is a Intern and they do a ! command then do what ever ! said to do? and if the user is normal and they do a ! command then dont do ! but if they do # then do #?