Package me.fami6xx.rpuniverse.core.locks
Class Lock
java.lang.Object
me.fami6xx.rpuniverse.core.locks.Lock
Lock class
-
Constructor Summary
ConstructorsConstructorDescriptionLock(org.bukkit.Location location, List<String> owners, String jobName, int minWorkingLevel, org.bukkit.Material shownMaterial)Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, String jobName, int minWorkingLevel)Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, Job job, int minWorkingLevel)Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, org.bukkit.entity.Player owner) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an owner to the lockvoidaddOwner(org.bukkit.entity.Player player)Add an owner to the lockGet the job name of the lockorg.bukkit.LocationGet the location of the lockintGet the minimum working level of the lockGet the owners of the lockGet the owners of the lock as a stringorg.bukkit.MaterialGet the material shown in the All Locks menugetUUID()Get the UUID of the lockvoidremoveOwner(UUID uuid)Remove an owner from the lockvoidremoveOwner(org.bukkit.entity.Player player)Remove an owner from the lockvoidsetJobName(String jobName)Set the job name of the lockvoidsetMinWorkingLevel(int minWorkingLevel)Set the minimum working level of the lockvoidSet owners of the lockvoidsetShownMaterial(org.bukkit.Material shownMaterial)Set the material shown in the All Locks menu
-
Constructor Details
-
Lock
-
Lock
public Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, org.bukkit.entity.Player owner) -
Lock
public Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, Job job, int minWorkingLevel) -
Lock
public Lock(org.bukkit.Location location, org.bukkit.Material shownMaterial, String jobName, int minWorkingLevel)
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation()Get the location of the lock- Returns:
- The location of the lock
-
getOwners
Get the owners of the lock- Returns:
- The list of owners of the lock
-
addOwner
public void addOwner(org.bukkit.entity.Player player)Add an owner to the lock- Parameters:
player- The player to add as an owner
-
addOwner
Add an owner to the lock- Parameters:
uuid- The UUID of the player to add as an owner
-
removeOwner
public void removeOwner(org.bukkit.entity.Player player)Remove an owner from the lock- Parameters:
player- The player to remove as an owner
-
removeOwner
Remove an owner from the lock- Parameters:
uuid- The UUID of the player to remove as an owner
-
setOwners
Set owners of the lock- Parameters:
owners- The list of owners to set
-
getJobName
Get the job name of the lock- Returns:
- The job name of the lock
-
setJobName
Set the job name of the lock- Parameters:
jobName- The job name to set
-
getMinWorkingLevel
public int getMinWorkingLevel()Get the minimum working level of the lock- Returns:
- The minimum working level of the lock
-
setMinWorkingLevel
public void setMinWorkingLevel(int minWorkingLevel)Set the minimum working level of the lock- Parameters:
minWorkingLevel- The minimum working level to set
-
getShownMaterial
public org.bukkit.Material getShownMaterial()Get the material shown in the All Locks menu- Returns:
- The material shown in the All Locks menu
-
setShownMaterial
public void setShownMaterial(org.bukkit.Material shownMaterial)Set the material shown in the All Locks menu- Parameters:
shownMaterial- The material shown in the All Locks menu
-
getUUID
Get the UUID of the lock- Returns:
- The UUID of the lock
-
getOwnersAsString
Get the owners of the lock as a string- Returns:
- The owners of the lock as a string
-