Class PropertyManager

java.lang.Object
me.fami6xx.rpuniverse.core.properties.PropertyManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class PropertyManager extends Object implements org.bukkit.event.Listener
Manages properties in the RP Universe.
  • Constructor Details

    • PropertyManager

      public PropertyManager(RPUniverse plugin)
      Constructs a new PropertyManager.
      Parameters:
      plugin - the RPUniverse plugin instance
  • Method Details

    • disable

      public void disable()
      Disables the PropertyManager.
    • saveProperties

      public void saveProperties()
      Saves all properties to JSON files.
    • saveProperty

      public void saveProperty(Property property)
      Saves a single property to a JSON file.
      Parameters:
      property - the property to save
    • createProperty

      public void createProperty(Property property)
      Creates a new property and saves it.
      Parameters:
      property - the property to create
    • removeProperty

      public void removeProperty(UUID propertyId)
      Removes a property by its ID.
      Parameters:
      propertyId - the ID of the property to remove
    • getPropertyByHologram

      public Property getPropertyByHologram(org.bukkit.Location loc)
      Gets a property by its hologram location.
      Parameters:
      loc - the location of the hologram
      Returns:
      the property with the specified hologram location, or null if not found
    • getAllProperties

      public Collection<Property> getAllProperties()
      Gets all properties.
      Returns:
      a collection of all properties
    • getPropertyById

      public Property getPropertyById(UUID propertyId)
      Gets a property by its ID.
      Parameters:
      propertyId - the ID of the property
      Returns:
      the property with the specified ID, or null if not found
    • onPlayerLogin

      public void onPlayerLogin(org.bukkit.event.player.PlayerJoinEvent event)
      Event handler for player login events.
      Parameters:
      event - the player join event
    • onPlayerQuit

      public void onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent event)
    • onLockDeleted

      public void onLockDeleted(LockDeletedEvent event)