TownyPVP help

Discussion in 'Plugin Development' started by EndureBlackout, Oct 15, 2015.

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

    EndureBlackout

    Using towny API how can I check if the player is in a area with pvp enabled such as the wilderness or a town with pvp enabled etc...
     
  2. Offline

    IMleader

    Hey,
    @EndureBlackout
    Where ever you got the code to use the API as a dependency. it should give info there
     
  3. Offline

    LlmDl

  4. Offline

    EndureBlackout

    I want to check if he is in the wilderness but when i do that I get an error when they hit eachother
     
  5. Offline

    LlmDl

    http://palmergames.com/javadoc/town.../bukkit/towny/object/TownBlock.html#hasTown()

    That will return null if there is no town at the towny coordinate in question, in which case it is wilderness.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
Thread Status:
Not open for further replies.

Share This Page