mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Expand HuskHomes API
This commit is contained in:
1 parent
d8daeac851
commit
040f6318f4
1 file changed
+16
@@ -79,6 +79,22 @@ public class HuskHomesAPI {
|
||||
return getHomes(player).size();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the maximum number of homes a player can set
|
||||
* @return the maximum homes a player can set
|
||||
*/
|
||||
public int getMaxSethomes(Player player) {
|
||||
return Home.getSetHomeLimit(player);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of homes a player can set for free
|
||||
* @return the number of free homes a player can set
|
||||
*/
|
||||
public int getFreeSethomes(Player player) {
|
||||
return Home.getFreeHomes(player);
|
||||
}
|
||||
|
||||
/**
|
||||
Returns an ArrayList of all the public homes set
|
||||
@return an ArrayList of Homes
|
||||
|
||||
Reference in new issue
Block a user