asdp000333
本帖最后由 asdp000333 于 2020-5-19 21:00 编辑

[付费|信息]TownyGUI —— 城镇菜单<¥44>[1.7-1.14]
https://www.mcbbs.net/thread-815638-1-1.html
(出处: Minecraft(我的世界)中文论坛)Log 链接:https://pan.baidu.com/s/1Z4oGnutjGLC_m0Eec8JZrA 提取码:4f0u

Catserver 刚买的 插件版本为4.9  报错如下
  1. [20:15:04] [Server thread/INFO]: Tirol issued server command: /tgui main
  2. [20:15:04] [Server thread/ERROR]: null
  3. org.bukkit.command.CommandException: Unhandled exception executing command 'tgui' in plugin TownyGUI v4.9
  4.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[PluginCommand.class:git-CatServer-1.12.2-3413a60]
  5.         at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:144) ~[SimpleCommandMap.class:git-CatServer-1.12.2-3413a60]
  6.         at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:709) ~[CraftServer.class:git-CatServer-1.12.2-3413a60]
  7.         at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1594) [pa.class:?]
  8.         at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1439) [pa.class:?]
  9.         at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [la.class:?]
  10.         at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [la.class:?]
  11.         at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
  12.         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_251]
  13.         at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_251]
  14.         at net.minecraft.util.Util.func_181617_a(Util.java:50) [h.class:?]
  15.         at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:844) [MinecraftServer.class:?]
  16.         at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:472) [nz.class:?]
  17.         at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:781) [MinecraftServer.class:?]
  18.         at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:635) [MinecraftServer.class:?]
  19.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
  20. Caused by: java.lang.NullPointerException
  21.         at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:70) ~[ItemStack.class:git-CatServer-1.12.2-3413a60]
  22.         at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:48) ~[ItemStack.class:git-CatServer-1.12.2-3413a60]
  23.         at com.mystycfalls.townygui.itemstack.ItemStackMainMenuInv.town(ItemStackMainMenuInv.java:25) ~[?:?]
  24.         at com.mystycfalls.townygui.commands.CommandTGUI.onCommand(CommandTGUI.java:65) ~[?:?]
  25.         at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[PluginCommand.class:git-CatServer-1.12.2-3413a60]
  26.         ... 15 more
复制代码

已自行解决 脑t作者 不做1.12.2物品ID版本 物品ID有问题导致报错



strings
上传完整的 log

asdp000333

如果我说 没生成 该时间段的log 你信么 有debug

strings
asdp000333 发表于 2020-5-19 20:21
如果我说 没生成 该时间段的log 你信么

[20:15:04] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'tgui' in plugin TownyGUI v4.9


通常是插件在加载时就自我禁用所导致的。

所以得看完整的 log ,只有这段没啥用。

asdp000333
本帖最后由 asdp000333 于 2020-5-19 20:23 编辑
もぺもぺ 发表于 2020-5-19 20:21
[20:15:04] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception exe ...

插件加载没有报错
  1. [20:21:18] [Server thread/INFO]: [TownyChat] Enabling TownyChat v0.54
  2. [20:21:18] [Server thread/INFO]: [TownyChat] Default Channel set to general
  3. [20:21:19] [Server thread/INFO]: [TownyNameUpdater] Enabling TownyNameUpdater v2.5
  4. [20:21:19] [Server thread/INFO]: [TownyGUI] Enabling TownyGUI v4.9
  5. [20:21:19] [Server thread/INFO]: [TownyGUI] Hooked into Towny!.
  6. [20:21:19] [Server thread/INFO]: [TownyGUI] has been enabled without errors.
  7. [20:21:19] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
  8. [20:21:19] [Server thread/INFO]: Done (60.020s)! For help, type "help" or "?"
复制代码



strings
asdp000333 发表于 2020-5-19 20:22
插件加载没有报错

确实。看错了一块地方。并没有什么办法,等别人吧

asdp000333
もぺもぺ 发表于 2020-5-19 20:24
确实。看错了一块地方。并没有什么办法,等别人吧

生成log了大佬你看看?
链接:https://pan.baidu.com/s/1Z4oGnutjGLC_m0Eec8JZrA
提取码:4f0u

strings
asdp000333 发表于 2020-5-19 20:26
生成log了大佬你看看?
链接:https://pan.baidu.com/s/1Z4oGnutjGLC_m0Eec8JZrA
提取码:4f0u  ...

我觉得你放到一个原版的 spigot 上应该是可以运行的

下一页 最后一页