Help with detecting structures

Discussion in 'Plugin Development' started by robotnikthingy, Aug 19, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    robotnikthingy

    Hi,I have no idea how to make it so that when a player builds a structure, the plugin would detect it

    I basically want to make a plugin that when a player builds a 3x3 iron block structure, it gives them some money. Problem is I'm not sure how to go about doing it. Any help is appreciated
     
  2. Offline

    Shortninja66

    The "getRelative" method is very useful. For example, you could do "block.getRelative(BlockFace.NORTH)" and it would get the block to the north of the block.

    Just check if the blocks are null or not.

    EDIT: My bad, I meant to say use PlayerBlockPlaceEvent in joint with this :p
     
    Last edited: Aug 19, 2015
  3. Offline

    caderape

    robotnikthingy and Shortninja66 like this.
Thread Status:
Not open for further replies.

Share This Page