TARDIS

TARDIS

228k Downloads

Some TARDIS commands give errors when insufficient or no arguments are supplied

DalekCraft2 opened this issue ยท 1 comments

commented

Describe the bug
/tardisgamemode causes internal errors.

To Reproduce

  1. Literally just run /tardisgamemode.

Screenshots
image

Log files
Paste your server log (showing the whole server startup to when the error occurs) on a website like pastebin.com, and post a link here. Even if there are no errors in the log, it still contains useful information for troubleshooting.

12.05 22:16:02 [Server] INFO DalekCraft issued server command: /tardisgamemode
12.05 22:16:02 [Server] ERROR null
12.05 22:16:02 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'tardisgamemode' in plugin TARDIS v4.6.1-b2263
12.05 22:16:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at org.bukkit.craftbukkit.v1_16_R3.CraftServer.dispatchCommand(CraftServer.java:810) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnection.handleCommand(PlayerConnection.java:2171) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnection.c(PlayerConnection.java:1986) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:1939) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:50) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PacketPlayInChat.a(PacketPlayInChat.java:8) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.bb(MinecraftServer.java:1262) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.executeNext(MinecraftServer.java:1255) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1216) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:289) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO at java.lang.Thread.run(Thread.java:834) [?:?]
12.05 22:16:02 [Server] INFO Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
12.05 22:16:02 [Server] INFO at me.eccentric_nz.TARDIS.commands.utils.TARDISGameModeCommand.setPlayerGameMode(TARDISGameModeCommand.java:103) ~[?:?]
12.05 22:16:02 [Server] INFO at me.eccentric_nz.TARDIS.commands.utils.TARDISGameModeCommand.onCommand(TARDISGameModeCommand.java:58) ~[?:?]
12.05 22:16:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.5.jar:git-Paper-"809466f2e"]
12.05 22:16:02 [Server] INFO ... 19 more

/tardis version output
Please include an output of your /tardis version.

16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] Server version: git-Paper-"809466f2e" (MC: 1.16.5)
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] TARDIS version: 4.6.1-b2263
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] TARDISChunkGenerator version: 4.6.1
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] PlaceholderAPI version: 2.10.9
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] LibsDisguises version: 10.0.24
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] Essentials version: 2.18.2.0
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] WorldGuard version: 7.0.4+f7ff984
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] Multiverse-Core version: 4.2.2-b812
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] WorldBorder version: 2.1.1
16:18:26.407
[16:18:26] [Render thread/INFO] [minecraft/NewChatGui]: [CHAT] [TARDIS] Checking for new TARDIS builds...
commented

#502 /tardis construct with no further arguments
#500 /tardissudo with no arguments
#499 /tardisschematic with no arguments
#496 /tardis remote area with no area specified