Expand HuskHomes API

This commit is contained in:
William278 committed 2021-04-09 12:06:43 +01:00
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