Using BPCOUNT with target player other than self, sends message to target of the region count instead of sender.
Using BPCOUNT on self (without name argument) causes an NPE:
org.bukkit.command.CommandException: Unhandled exception executing command 'bpcount' in plugin Border Patrol v0.0.1 Alpha
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807)
at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at com.dpajd.ProtectionPlugin.Commands.BPCommandCount.onCommand(BPCommandCount.java:22)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
... 15 more
Using BPCOUNT with target player other than self, sends message to target of the region count instead of sender.
Using BPCOUNT on self (without name argument) causes an NPE:
org.bukkit.command.CommandException: Unhandled exception executing command 'bpcount' in plugin Border Patrol v0.0.1 Alpha at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.dpajd.ProtectionPlugin.Commands.BPCommandCount.onCommand(BPCommandCount.java:22) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more