[SPIGOT-1308] Error with worldborder command :( Created: 25/Nov/15 Updated:
22/Jan/16 Resolved: 22/Jan/16
Status:
Closed
Project:
Spigot
Component/s:
None
Affects
Version/s:
None
Fix Version/s:
Spigot 1.9.X
Type:
Bug
Priority:
Major
Reporter:
FlashLight34
Assignee:
Unassigned
Resolution:
Fixed
Votes:
0
Labels:
1.8.8, bug, spigot
Attachments:
bugwb.PNG bugworldborder.PNG
Version:
This server is running CraftBukkit version git-Spigot-db6de12-18fbb24
(MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
Description
i tryed this on my big map freebuild same with /worldborder center 192 -184
[19:22:03 INFO]: FlashLight32 issued server command: /minecraft:worldborder center 192 -184
[19:22:03 WARN]: Unknown CommandBlock failed to handle command
java.lang.ArrayIndexOutOfBoundsException: 8
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368) ~[?:1.7.0_55]
at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377) ~[?:1.7.0_55]
at net.minecraft.server.v1_8_R3.PlayerList.sendAll(PlayerList.java:898) ~[spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.World$3.a(World.java:213) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.WorldBorder.setCenter(WorldBorder.java:130) ~[spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.CommandWorldBorder.execute(SourceFile:89) ~[spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at
org.bukkit.craftbukkit.v1_8_R3.command.VanillaCommandWrapper.dispatchVanillaCommand(VanillaCommandWrapper.java:108)
[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.command.VanillaCommandWrapper.execute(VanillaCommandWrapper.java:43) [spigot-
1.8.8.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) [spigot-1.8.8.jar:git-Spigot-
db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-
Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_55]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_55]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-db6de12-
18fbb24]
at java.lang.Thread.run(Thread.java:744) [?:1.7.0_55]
Comments
Comment by FlashLight34 [ 26/Nov/15 ]
another bug i noticed, i setted the border in my resources map and i needed to change of world (teleport to another world
and go back) to got the new config of border.
maybe this api need an update
Comment by Black Hole [ 26/Nov/15 ]
"E7" is not a character. "6.0E7" means "6.0 * 10^7". That is the default border at 30 000 000 blocks in each direction.
Comment by FlashLight34 [ 26/Nov/15 ]
Thanks for the explanation
Comment by FlashLight34 [ 26/Nov/15 ]
i got this to with the reset option
issued server command: /wbf reset
[14:56:49] [Server thread/WARN]: java.lang.ArrayIndexOutOfBoundsException: 5
[14:56:49] [Server thread/WARN]: at
java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
[14:56:49] [Server thread/WARN]: at
java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerList.sendAll(PlayerList.java:898)
[14:56:49] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.World$3.a(World.java:205)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.WorldBorder.setSize(WorldBorder.java:167)
[14:56:49] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftWorldBorder.setSize(CraftWorldBorder.java:46)
[14:56:49] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftWorldBorder.setSize(CraftWorldBorder.java:34)
[14:56:49] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftWorldBorder.reset(CraftWorldBorder.java:19)
[14:56:49] [Server thread/WARN]: at org.flash.setrankmod.wbf_command.cmd(wbf_command.java:59)
[14:56:49] [Server thread/WARN]: at
org.flash.setrankmod.OnCommand.onCommand(OnCommand.java:128)
[14:56:49] [Server thread/WARN]: at
org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[14:56:49] [Server thread/WARN]: at
org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[14:56:49] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[14:56:49] [Server thread/WARN]: at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[14:56:49] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[14:56:49] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[14:56:49] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[14:56:49] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:744)
else if (args[0].equalsIgnoreCase("reset")) {
World w = pl.getWorld();
WorldBorder wb = w.getWorldBorder();
try {
wb.reset();
pl.sendMessage("[SRM] Remise à 0 de la bordure du
monde "+w.getName()+"");
}catch(Exception e) {
pl.sendMessage(ChatColor.RED+"[SRM] Cette commande
est cassée avec le monde "+w.getName()+" "+e.getMessage());
e.printStackTrace();
}
}
Comment by FlashLight34 [ 27/Nov/15 ]
this evening i tryed to set the border and that worked but i got this error
[03:36:47] [Server thread/INFO]: FlashLight32 issued server command: /wbf set 8000
[03:36:47] [Server thread/WARN]: java.lang.ArrayIndexOutOfBoundsException: 2
[03:36:47] [Server thread/WARN]: at
java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
[03:36:47] [Server thread/WARN]: at
java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerList.sendAll(PlayerList.java:898)
[03:36:47] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.World$3.a(World.java:205)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.WorldBorder.setSize(WorldBorder.java:167)
[03:36:47] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftWorldBorder.setSize(CraftWorldBorder.java:46)
[03:36:47] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftWorldBorder.setSize(CraftWorldBorder.java:34)
[03:36:47] [Server thread/WARN]: at org.flash.setrankmod.wbf_command.cmd(wbf_command.java:76)
[03:36:47] [Server thread/WARN]: at
org.flash.setrankmod.OnCommand.onCommand(OnCommand.java:128)
[03:36:47] [Server thread/WARN]: at
org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[03:36:47] [Server thread/WARN]: at
org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[03:36:47] [Server thread/WARN]: at
org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
[03:36:47] [Server thread/WARN]: at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[03:36:47] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[03:36:47] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[03:36:47] [Server thread/WARN]: at
net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[03:36:47] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:744)
if (args[0].equalsIgnoreCase("set")) {
World w = pl.getWorld();
WorldBorder wb = w.getWorldBorder();
double oldsiz = wb.getSize();
try {
NumberFormat formatter = new DecimalFormat("#0.0");
Double size = Double.parseDouble(args[1]);
size = Double.parseDouble(formatter.format(size));
wb.setSize(size);
double newsiz = wb.getSize();
pl.sendMessage("[SRM] La grosseur de la bordure du
monde "+w.getName()+" est changé de "+oldsiz+" -> "+newsiz);
}catch(Exception e) {
pl.sendMessage(ChatColor.RED+"[SRM] Cette commande
est cassée avec le monde "+w.getName()+" "+e.getMessage());
e.printStackTrace();
}
}
Comment by FlashLight34 [ 27/Nov/15 ]
Now when i setted the center of my nether i got again one bug see picture below
Comment by Black Hole [ 27/Nov/15 ]
This seems to be an easy to fix bug in PlayerList.sendAll(Packet packet, World world)
That method is only used by WorldBorder.
Comment by FlashLight34 [ 01/Dec/15 ]
hello somebody s home?
Comment by FlashLight34 [ 18/Jan/16 ]
so maybe nobody like my bug i maked my plugin with try catch with empty catch so now that work properly but i think
not all users can give the packet when i change the border.
only bad bug is from my nether the center not work properly i dont know why its not the same location from i set.
ps. sorry for my bad english i need more practice with my duolingo
Comment by Thinkofname [ 22/Jan/16 ]
Fixed for 1.9. May try and backport
Comment by Thinkofname [ 22/Jan/16 ]
Done
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/75593ab621f26c3954bff13057d2ed6720da7592
Comment by FlashLight34 [ 22/Jan/16 ]
ok thx very much and you know about the setcenter for nether?
Comment by Thinkofname [ 22/Jan/16 ]
That isn't a bug, the nether is 8 times smaller than the overworld so everything gets scaled down (like vanilla)
Comment by FlashLight34 [ 22/Jan/16 ]
ok thx very much, i just need to multiply this value per 8
Generated at Sat Apr 15 19:51:06 UTC 2017 using JIRA 7.3.0#73011-
sha1:3c73d0e0b5ea20e2128531b9adf9b0585752b90a.
1 / 5 100%
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !