Class Resident

All Implemented Interfaces:
ILocatable<Player>, ISerializable

public class Resident extends Player implements ISerializable
  • Constructor Details

    • Resident

      public Resident(com.google.gson.JsonObject res, com.google.gson.JsonObject op)
    • Resident

      public Resident(com.google.gson.JsonObject res, Player op)
    • Resident

      public Resident(com.google.gson.JsonObject obj)
  • Method Details

    • hasAuthority

      public boolean hasAuthority()

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

      Returns:
      true if rank is 'Mayor' or 'Leader', otherwise false.
    • fromArr

      protected static List<Resident> fromArr(@NotNull @NotNull com.google.gson.JsonArray arr, String key)