Botany Bay? Oh no
What error is it giving? could you post the stack trace
|
Hello,
So I leeched a botany bay, and well, the only problem I get is when I try to actually ban the "bot" or me in this case.
I use the command
And this is the "trialBot" method:Code:case "botban": name = ""; for (int i = 1; i < cmd.length; i++) name += cmd[i] + ((i == cmd.length - 1) ? "" : " "); target = World.getPlayerByDisplayName(name); if (target == null) { player.getPackets().sendGameMessage( Utils.formatPlayerNameForDisplay(name)+" is not logged in."); return true; } World.getBotanyBay().trialBot(target, 1); player.getPackets().sendGameMessage("You have bot-banned: "+target.getDisplayName()+"."); return true;
So basicly, the actual sequenceCode:public void trialBot(final Player bot, int daysBanned) { if (trialTime > 0) {// trial already in progress sendCrush(bot, daysBanned); return; } if (bot.hasFinished() || bot == null) { restart(false); return; } announceEvent(); setUpConfigurations(bot); sendBan(daysBanned, bot); if (bots.contains(bot)) { bots.remove(bot); }
won't start, it simply tells me that this:
Code:World.getBotanyBay().trialBot(target, 1);Particular code is giving me errors. And my initial thought was that the previous owner removed a method so that it doesn't work. Although i don't seem to find anything wrong with the actual code.Code:at com.rs.game.player.content.Commands.processModCommand(Commands.java:2238)
Would be nice with some clearity
OBS: Eclipse shows no errors in the code and nothing is stopping me from starting the server/client. I'm also able to do everything except that command.
Do you mean this?
Code:ERROR! THREAD NAME: New I/O worker #2 java.lang.NullPointerException at com.rs.game.player.content.Commands.processModCommand(Commands.java:2238) at com.rs.game.player.content.Commands.processCommand(Commands.java:84) at com.rs.net.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDecoder.java:1558) at com.rs.net.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.java:270) at com.rs.net.ServerChannelHandler.messageReceived(ServerChannelHandler.java:98) at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:95) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:563) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:558) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:91) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:373) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:247) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
give us line 2238 in your commands.java
target could be null could be something to do with the code of trialbot or something to do with the getbotanybay code or there both not finished.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |