"/worldborder warning distance/time" throws an error when used without arguments
All in the title, Game log :
[18:06:07] [Client thread/INFO]: [CHAT] Usage: /worldborder warning <time|distance>
[18:06:10] [Client thread/INFO]: [CHAT] An unknown error occurred while attempting to perform this command
[18:06:10] [Server thread/ERROR]: Couldn't process command: 'worldborder warning time'
java.lang.ArrayIndexOutOfBoundsException: 2
at dg.a(SourceFile:120) ~[1.8-pre1.jar:?]
at ab.a(SourceFile:80) [1.8-pre1.jar:?]
at ab.a(SourceFile:63) [1.8-pre1.jar:?]
at rj.d(SourceFile:635) [1.8-pre1.jar:?]
at rj.a(SourceFile:622) [1.8-pre1.jar:?]
at lu.a(SourceFile:37) [1.8-pre1.jar:?]
at lu.a(SourceFile:9) [1.8-pre1.jar:?]
at ih.run(SourceFile:13) [1.8-pre1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at net.minecraft.server.MinecraftServer.z(SourceFile:576) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.y(SourceFile:531) [1.8-pre1.jar:?]
at cyf.y(SourceFile:155) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:447) [1.8-pre1.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
[18:06:13] [Server thread/ERROR]: Couldn't process command: 'worldborder warning distance'
java.lang.ArrayIndexOutOfBoundsException: 2
at dg.a(SourceFile:120) ~[1.8-pre1.jar:?]
at ab.a(SourceFile:80) [1.8-pre1.jar:?]
at ab.a(SourceFile:63) [1.8-pre1.jar:?]
at rj.d(SourceFile:635) [1.8-pre1.jar:?]
at rj.a(SourceFile:622) [1.8-pre1.jar:?]
at lu.a(SourceFile:37) [1.8-pre1.jar:?]
at lu.a(SourceFile:9) [1.8-pre1.jar:?]
at ih.run(SourceFile:13) [1.8-pre1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at net.minecraft.server.MinecraftServer.z(SourceFile:576) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.y(SourceFile:531) [1.8-pre1.jar:?]
at cyf.y(SourceFile:155) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:447) [1.8-pre1.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
[18:06:14] [Client thread/INFO]: [CHAT] An unknown error occurred while attempting to perform this command
Environment
Windows Vista, Java version 1.7.0_45
Created Issue:
"/worldborder warning distance" nor "/worldborder warning time" works
All in the title, Game log :
[18:06:07] [Client thread/INFO]: [CHAT] Usage: /worldborder warning <time|distance>
[18:06:10] [Client thread/INFO]: [CHAT] An unknown error occurred while attempting to perform this command
[18:06:10] [Server thread/ERROR]: Couldn't process command: 'worldborder warning time'
java.lang.ArrayIndexOutOfBoundsException: 2
at dg.a(SourceFile:120) ~[1.8-pre1.jar:?]
at ab.a(SourceFile:80) [1.8-pre1.jar:?]
at ab.a(SourceFile:63) [1.8-pre1.jar:?]
at rj.d(SourceFile:635) [1.8-pre1.jar:?]
at rj.a(SourceFile:622) [1.8-pre1.jar:?]
at lu.a(SourceFile:37) [1.8-pre1.jar:?]
at lu.a(SourceFile:9) [1.8-pre1.jar:?]
at ih.run(SourceFile:13) [1.8-pre1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at net.minecraft.server.MinecraftServer.z(SourceFile:576) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.y(SourceFile:531) [1.8-pre1.jar:?]
at cyf.y(SourceFile:155) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:447) [1.8-pre1.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
[18:06:13] [Server thread/ERROR]: Couldn't process command: 'worldborder warning distance'
java.lang.ArrayIndexOutOfBoundsException: 2
at dg.a(SourceFile:120) ~[1.8-pre1.jar:?]
at ab.a(SourceFile:80) [1.8-pre1.jar:?]
at ab.a(SourceFile:63) [1.8-pre1.jar:?]
at rj.d(SourceFile:635) [1.8-pre1.jar:?]
at rj.a(SourceFile:622) [1.8-pre1.jar:?]
at lu.a(SourceFile:37) [1.8-pre1.jar:?]
at lu.a(SourceFile:9) [1.8-pre1.jar:?]
at ih.run(SourceFile:13) [1.8-pre1.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_45]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_45]
at net.minecraft.server.MinecraftServer.z(SourceFile:576) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.y(SourceFile:531) [1.8-pre1.jar:?]
at cyf.y(SourceFile:155) [1.8-pre1.jar:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:447) [1.8-pre1.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.7.0_45]
[18:06:14] [Client thread/INFO]: [CHAT] An unknown error occurred while attempting to perform this commandEnvironment
Windows Vista, Java version 1.7.0_45
"/worldborder warning distance" nor "/worldborder warning time"works"/worldborder warning distance" does not work nor "/worldborder warning time"
"/worldborder warning distance" does not work nor "/worldborder warning time""/worldborder warning distance/time" throws an error when used without arguments
is duplicated by
Dupe of MC-69072. The "sizeInBlocks" and "timeInSeconds" parameters are required for the command to function properly.
The "sizeinBlocks" and the "timeinSeconds" are required for the commands to function.
Well in game it just throws "An unknown error occured while attempting to perform this command" without explaining how do we use that command.
"/worldborder set" shows how to use the command but the commands I mentionned just throws the error
Well why should this be invalid, leaving out an argument should probably not cause an error message like this
Confirmed for 1.8.2-pre1
Please reopen
Marcono, the commands literally require both of those things in order for the commands to function.
Here are the syntaxes for both commands:
If they were completely optional, they would've been like so:
When doing "/worldborder warning time" or "/worldborder warning distance", instead of showing this :
It should show :
or
respectively
(PS : I edited a little bit the title to reflect the real problem)
Sonic, the game still should not throw an error but instead show the correct syntaxt. It is like using only /give @p which also doesn't throw an error
Affects minecraft 1.8.4 – though no stacktrace is printed anymore, it still says "An unknown error occurred while attempting to perform this command".