- Плагин
- citizens
- Ядро сервера
- Spigot
- Версия сервера
- 1.18
- Память сервера ОЗУ
- 4Gb
Здравствуйте.
На сервере (Spigot 1.16.2) установлены Citizens и Denizen, запускаются корректно, в списке плагинов отмечены зеленым оба.
Итак, я пытаюсь присвоить скрипт для NPC и сталкиваюсь с проблемой.
Создаю NPC обычно: /npc create [name]
Создается нормально.
После чего пробую присвоить ему скрипт "Cookies": /npc assignment --set Cookies
В ответ в чат выскакивает сообщение:
А в консоли пишет следующее:
Путь к скрипту таков: plugins/Denizen/scripts/Cookies.yml
Сам скрипт брал готовый из интернета для проверки плагина:
Когда командой проверяю список скриптов он отображается загруженным, а значит должен работать.
Полагаю, что проблема именно в Citizens. Кто поможет разобраться?
Спасибо.
На сервере (Spigot 1.16.2) установлены Citizens и Denizen, запускаются корректно, в списке плагинов отмечены зеленым оба.
Итак, я пытаюсь присвоить скрипт для NPC и сталкиваюсь с проблемой.
Создаю NPC обычно: /npc create [name]
Создается нормально.
После чего пробую присвоить ему скрипт "Cookies": /npc assignment --set Cookies
В ответ в чат выскакивает сообщение:
You must be registered for see images
[09:50:29] [Server thread/WARN]: java.lang.NoSuchMethodError: net.citizensnpcs.api.npc.NPC.getOrAddTrait(Ljava/lang/ClassLnet/citizensnpcs/api/trait/Trait;
[09:50:29] [Server thread/WARN]: at com.denizenscript.denizen.utilities.command.NPCCommandHandler.assignment(NPCCommandHandler.java:188)
[09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[09:50:29] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[09:50:29] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Method.java:498)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:159)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:91)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:187)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:269)
[09:50:29] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[09:50:29] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[09:50:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:756)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1697)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1540)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(SourceFile:144)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(SourceFile:118)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:941)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:934)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:918)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:850)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164)
[09:50:29] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
[09:50:29] [Server thread/WARN]: at com.denizenscript.denizen.utilities.command.NPCCommandHandler.assignment(NPCCommandHandler.java:188)
[09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09:50:29] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[09:50:29] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[09:50:29] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Method.java:498)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeMethod(CommandManager.java:159)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.execute(CommandManager.java:91)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.api.command.CommandManager.executeSafe(CommandManager.java:187)
[09:50:29] [Server thread/WARN]: at net.citizensnpcs.Citizens.onCommand(Citizens.java:269)
[09:50:29] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[09:50:29] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[09:50:29] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_16_R2.CraftServer.dispatchCommand(CraftServer.java:756)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.handleCommand(PlayerConnection.java:1697)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnection.a(PlayerConnection.java:1540)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:47)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PacketPlayInChat.a(PacketPlayInChat.java:1)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.TickTask.run(SourceFile:18)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeTask(SourceFile:144)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.executeNext(SourceFile:118)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.ba(MinecraftServer.java:941)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.executeNext(MinecraftServer.java:934)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.sleepForTick(MinecraftServer.java:918)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:850)
[09:50:29] [Server thread/WARN]: at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$0(MinecraftServer.java:164)
[09:50:29] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
Сам скрипт брал готовый из интернета для проверки плагина:
Код:
Cookies:
type: assignment
interact scripts:
- 100 Cookie Handler
Cookie Handler:
type: interact
steps:
'Spreading the Word*':
click trigger:
script:
- random 3
- chat 'I like cookies!'
- chat 'MMmm.. cookies are favorite!'
- chat 'Cocoa and wheat me freak!'
chat trigger:
'Cookies':
trigger: 'I love /cookie/s!'
script:
- chat 'Me too!'
- narrate '<npc.name> gives you some cookies.'
- give i@cookie qty:6
- zap 'step:Cookies given'
'Cookies given':
click trigger:
script:
- chat 'How were the cookies?'
- zap 'step:Spreading the Word'
Полагаю, что проблема именно в Citizens. Кто поможет разобраться?
Спасибо.