14.02.2016, 19:30
Код:
commandManager = new PlayerCommandManager(eventManager); commandManager.installCommandHandler(HandlerPriority.BOTTOM); commandManager.registerCommand("takelesson", new Class[0], new String[0], (player, params) -> { LtrpPlayer p = LtrpPlayer.get(player); if(p != null) { p.sendErrorMessage("Šią komandą galite naudoti tik būdami vairavimo mokyklos transporto priemonėje arba mokyklos patalpose."); } return true; }, null, null);
Код:
2016-02-14 22:30:26,926 ERROR [err] - java.lang.NullPointerException 2016-02-14 22:30:26,926 ERROR [err] - at net.gtaun.shoebill.common.command.CommandGroup.processCommand(CommandGroup.java:284) 2016-02-14 22:30:26,926 ERROR [err] - at net.gtaun.shoebill.common.command.CommandGroup.processCommand(CommandGroup.java:267) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.shoebill.common.command.PlayerCommandManager.processCommand(PlayerCommandManager.java:89) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.shoebill.common.command.PlayerCommandManager.lambda$installCommandHandler$79(PlayerCommandManager.java:62) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.shoebill.common.command.PlayerCommandManager$$Lambda$124/22743881.handleEvent(Unknown Source) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.util.event.EventManagerRoot.dispatchEvent(EventManagerRoot.java:189) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.util.event.EventManager.dispatchEvent(EventManager.java:129) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.shoebill.SampEventDispatcher.onPlayerCommandText(SampEventDispatcher.java:248) 2016-02-14 22:30:26,927 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$null$100(SampCallbackManagerImpl.java:129) 2016-02-14 22:30:26,928 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$299/8312572.call(Unknown Source) 2016-02-14 22:30:26,928 ERROR [err] - at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:21) 2016-02-14 22:30:26,928 ERROR [err] - at net.gtaun.shoebill.util.TryUtils.tryTo(TryUtils.java:14) 2016-02-14 22:30:26,928 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.lambda$onPlayerCommandText$101(SampCallbackManagerImpl.java:129) 2016-02-14 22:30:26,928 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1$$Lambda$298/17521583.accept(Unknown Source) 2016-02-14 22:30:26,928 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) 2016-02-14 22:30:26,928 ERROR [err] - at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) 2016-02-14 22:30:26,928 ERROR [err] - at java.util.concurrent.ConcurrentLinkedQueue$CLQSpliterator.forEachRemaining(ConcurrentLinkedQueue.java:851) 2016-02-14 22:30:26,928 ERROR [err] - at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) 2016-02-14 22:30:26,929 ERROR [err] - at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) 2016-02-14 22:30:26,929 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) 2016-02-14 22:30:26,929 ERROR [err] - at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) 2016-02-14 22:30:26,929 ERROR [err] - at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) 2016-02-14 22:30:26,929 ERROR [err] - at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) 2016-02-14 22:30:26,929 ERROR [err] - at net.gtaun.shoebill.samp.SampCallbackManagerImpl$1.onPlayerCommandText(SampCallbackManagerImpl.java:129)