Class SquaremapResident

java.lang.Object
io.github.emcw.squaremap.entities.SquaremapResident
All Implemented Interfaces:
IGsonSerializable

public class SquaremapResident extends Object implements IGsonSerializable
  • Constructor Details

    • SquaremapResident

      public SquaremapResident(String resName, SquaremapMarker marker, boolean isCouncillor)
  • Method Details

    • isCouncillor

      public boolean isCouncillor()
    • isMayor

      public boolean isMayor()
    • isNationLeader

      public boolean isNationLeader()
    • hasAuthority

      public boolean hasAuthority()

      Checks whether this resident has more permissions than a regular resident.

      Returns:
      true if rank is a Mayor, Nation Leader or Councillor - false otherwise.