How to import towny into plugin?

Discussion in 'Plugin Development' started by sooon_mitch, Dec 3, 2013.

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

    sooon_mitch

    Im coding a plugin for a modded server and the protection is Towny. The problem is I have people with quarrys place them outside the towns and it builds into the towny griefing the edges. I need to know how to import Towny into my plugin so I can check around the town when a block is placed(Quarry). Then also I need it to where I can ban items Right click or Left click inside towns like wrenches. This can help prevent a wrench from picking up blocks like Mass Fabs, Generators, Solars, Etc. undetectable. I searched every where for help but nothing has come up any advice will be appreciated.

    Bump

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  2. Offline

    LlmDl

  3. Offline

    Scyntrus

    Don't bump too many times.
    You import Towny.jar the same way you import Bukkit.jar, and use it essentially the same way.
     
  4. Offline

    sooon_mitch

    Do you know any way of getting events or any sources I may use?
     
  5. Offline

    Scyntrus

    I personally just decompiled the jar and looked through its source to see how it works.
     
  6. Offline

    LlmDl

    The source is available on github.com/elgarl
     
  7. Offline

    sooon_mitch

Thread Status:
Not open for further replies.

Share This Page