Solved Towny returning that player doesn't belong to a town

Discussion in 'Spigot Plugin Development' started by VivianMusic, Aug 9, 2018.

  1. Hey, I'm trying to incorporate Towny with my plugin.

    I'm using this to get the resident;

    Code (Text):
    Resident resident = new Resident(player.getName());
    and this to get their town:
    Code (Text):
    if(!(resident.hasTown())) {
    It sends whatever is inside of that code block, and if I try to message them the name of their town, it comes back saying TownNotRegisteredException. Why?
  2. Try using the following instead to get the Resident
    Code (Text):
    • Friendly Friendly x 1
  3. THANKS!