How do I find a sign?

Discussion in 'Plugin Development' started by Q.from.the.continuum, Feb 14, 2012.

Thread Status:
Not open for further replies.
  1. Hi, I'm writing a plugin, and I wonder how to find a specific sign
    Do I have to use a database or bukkit signs has some mechanisms of their search?
  2. Offline


    If it's about the content of that sign, you could store the location when it gets created (SIGN_CHANGE event). Then, because you have the location, you could do world.getBlockAt(location), which returns a block.
    If it's not null or air and you are sure it's a sign, you can do
    Sign sign = (Sign)block.getState();
  3. hmm, thanks for the quick reply.
    Not really what I meant.
    I want to find a sign on the player logs off and restart the server.
    I wonder if I need to create a database with the location signs to be able to search them or bukkit can do it somehow.
Thread Status:
Not open for further replies.

Share This Page