не работает команда

GhostUser

Интересующийся
Участник
Сообщения
34
Розыгрыши
0
Репутация
102
Реакции
13
Баллы
395
Хроники
  1. Chaotic Throne: High Five
Исходники
Присутствуют
Сборка
Мобиус
При вводе команды в сборке мобиус
L2J_Mobius_CT_2.6_HighFive

//fakechat

выскакивает ошибка
февр. 17, 2022 3:50:32 AM org.l2jmobius.gameserver.handler.AdminCommandHandler lambda$useAdminCommand$0
WARNING: Exception during execution of admin_fakechat
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at java.base/java.lang.String.substring(String.java:2677)
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at org.l2jmobius.commons.threads.RunnableWrapper.run(RunnableWrapper.java:35)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

февр. 17, 2022 3:55:34 AM org.l2jmobius.gameserver.handler.AdminCommandHandler lambda$useAdminCommand$0
WARNING: Exception during execution of admin_fakechat
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at java.base/java.lang.String.substring(String.java:2677)
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at org.l2jmobius.commons.threads.RunnableWrapper.run(RunnableWrapper.java:35)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
 
Решение
При вводе команды в сборке мобиус
L2J_Mobius_CT_2.6_HighFive

//fakechat

выскакивает ошибка
февр. 17, 2022 3:50:32 AM org.l2jmobius.gameserver.handler.AdminCommandHandler lambda$useAdminCommand$0
WARNING: Exception during execution of admin_fakechat
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at java.base/java.lang.String.substring(String.java:2677)
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at...
При вводе команды в сборке мобиус
L2J_Mobius_CT_2.6_HighFive

//fakechat

выскакивает ошибка
февр. 17, 2022 3:50:32 AM org.l2jmobius.gameserver.handler.AdminCommandHandler lambda$useAdminCommand$0
WARNING: Exception during execution of admin_fakechat
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at java.base/java.lang.String.substring(String.java:2677)
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at org.l2jmobius.commons.threads.RunnableWrapper.run(RunnableWrapper.java:35)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)

февр. 17, 2022 3:55:34 AM org.l2jmobius.gameserver.handler.AdminCommandHandler lambda$useAdminCommand$0
WARNING: Exception during execution of admin_fakechat
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4601)
at java.base/java.lang.String.substring(String.java:2704)
at java.base/java.lang.String.substring(String.java:2677)
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)
at org.l2jmobius.gameserver.handler.AdminCommandHandler.lambda$useAdminCommand$0(AdminCommandHandler.java:128)
at org.l2jmobius.commons.threads.RunnableWrapper.run(RunnableWrapper.java:35)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
java.lang.StringIndexOutOfBoundsException: begin 15, end 14, length 14
at handlers.admincommandhandlers.AdminFakePlayers.useAdminCommand(AdminFakePlayers.java:41)

AdminFakePlayers.java, строка 41, вызов функции substring, запрашиваемый стартовый индекс находится за пределами строки, т.е. длина строки менее 15, а если точнее - 14
 
Решение
Назад
Сверху Снизу