Inactive [TP] CoordinateSignWarp v0.0.3 [1.3.1-R2.0]

Discussion in 'Inactive/Unsupported Plugins' started by FlukiestEmperor, Jun 10, 2012.

  1. Offline


    Project now on BukkitDev​
    Description / Background
    This plugin was built to solve a simple problem on my server: To stop cluttering up the warp list.

    Some of the projects we build require a lot of warps in a very small area. I came up with the idea that instead of making more warps, I could put coordinates on a sign instead.

    This plugin is very simple. No flatfiles or databases since everything you need is simply stored on the sign.

    • CoordinateSignWarp.Create
    • CoordinateSignWarp.Use
    • CoordinateSign.*: Both of the above
    First line: Any name so long as the name is between [ ]
    Second line: X
    Third line: Y
    Fourth line: Z
    Coordinates are minecraft style, meaning Z is not height.

    Once you have one created, you just right click it to warp.



    Attached Files:

  2. Offline


    Need a non attachment download.
  3. Offline


  4. Offline


    Upon placing any non-warp sign (even a blank sign) in 1.3.1...

    2012-08-10 10:15:12 [SEVERE] Could not pass event SignChangeEvent to CoordinateSignWarp
    at org.bukkit.plugin.RegisteredListener.callEvent(
    at org.bukkit.plugin.SimplePluginManager.fireEvent(
    at org.bukkit.plugin.SimplePluginManager.callEvent(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet130UpdateSign.handle(SourceFile:46)
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.d(
    at net.minecraft.server.ServerConnection.b(SourceFile:35)
    at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
    at net.minecraft.server.MinecraftServer.q(
    at net.minecraft.server.DedicatedServer.q(
    at net.minecraft.server.MinecraftServer.p(
    Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(
    at java.util.ArrayList.get(
    at com.smulk.CoordinateSignWarp.CoordinateSign.isSignWarp(
    at com.smulk.CoordinateSignWarp.Listeners.BlockListener.onSignChange(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    ... 14 more
    Placing a properly-formatted warp sign doesn't spit out these errors, though.
  5. Offline


  6. Offline


    Fixed. It only happened when the sign was blank, not with any non-warp sign.
    Reason was because the way I setup my if statement in the code. If the sign was blank, the array size was zero, and it was trying to look at array index 0, which didn't exist, therefore it threw an out of bounds exception.

    I can look into this.

Share This Page