Class HomeOfflineYMLManager

java.lang.Object
fr.fuzeblocks.homeplugin.home.offline.yml.HomeOfflineYMLManager
All Implemented Interfaces:
OfflineHome

public class HomeOfflineYMLManager extends Object implements OfflineHome
The type Home offline yml manager.
  • Constructor Details

    • HomeOfflineYMLManager

      public HomeOfflineYMLManager(File file)
      Instantiates a new Home offline yml manager.
      Parameters:
      file - the file
  • Method Details

    • setHome

      public boolean setHome(UUID uuid, String name, org.bukkit.Location location)
      Description copied from interface: OfflineHome
      Sets home.
      Specified by:
      setHome in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      name - the name
      location - the location
      Returns:
      the home
    • renameHome

      public boolean renameHome(UUID uuid, String oldHomeName, String newHomeName)
      Description copied from interface: OfflineHome
      Rename home boolean.
      Specified by:
      renameHome in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      oldHomeName - the old home name
      newHomeName - the new home name
      Returns:
      the boolean
    • relocateHome

      public boolean relocateHome(UUID uuid, String homeName, org.bukkit.Location newLocation)
      Description copied from interface: OfflineHome
      Relocate home boolean.
      Specified by:
      relocateHome in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      homeName - the home name
      newLocation - the new location
      Returns:
      the boolean
    • getHomesLocation

      public List<org.bukkit.Location> getHomesLocation(UUID uuid)
      Description copied from interface: OfflineHome
      Gets homes location.
      Specified by:
      getHomesLocation in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      Returns:
      the homes location
    • getHomeNumber

      public int getHomeNumber(UUID uuid)
      Description copied from interface: OfflineHome
      Gets home number.
      Specified by:
      getHomeNumber in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      Returns:
      the home number
    • getHomesName

      public List<String> getHomesName(UUID uuid)
      Description copied from interface: OfflineHome
      Gets homes name.
      Specified by:
      getHomesName in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      Returns:
      the homes name
    • getCacheManager

      public CacheManager getCacheManager()
      Description copied from interface: OfflineHome
      Gets cache manager.
      Specified by:
      getCacheManager in interface OfflineHome
      Returns:
      the cache manager
    • getHomeLocation

      public org.bukkit.Location getHomeLocation(UUID uuid, String homeName)
      Description copied from interface: OfflineHome
      Gets home location.
      Specified by:
      getHomeLocation in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      homeName - the home name
      Returns:
      the home location
    • deleteHome

      public boolean deleteHome(UUID uuid, String homeName)
      Description copied from interface: OfflineHome
      Delete home boolean.
      Specified by:
      deleteHome in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      homeName - the home name
      Returns:
      the boolean
    • exist

      public boolean exist(UUID uuid, String homeName)
      Description copied from interface: OfflineHome
      Exist boolean.
      Specified by:
      exist in interface OfflineHome
      Parameters:
      uuid - the UUID of the player
      homeName - the home name
      Returns:
      the boolean