mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix max home locale placeholder, account for free homes, fix #338
This commit is contained in:
5 files changed
+38
-31
No files matched your search
@@ -578,7 +578,7 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @since 3.0
|
||||
*/
|
||||
public final int getMaxHomeSlots(@NotNull OnlineUser user) {
|
||||
return user.getMaxHomes(plugin.getSettings().getMaxHomes(), plugin.getSettings().doStackPermissionLimits());
|
||||
return plugin.getManager().homes().getMaxHomes(user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -591,7 +591,7 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @since 3.0
|
||||
*/
|
||||
public final int getFreeHomeSlots(@NotNull OnlineUser user) {
|
||||
return user.getFreeHomes(plugin.getSettings().getFreeHomeSlots(), plugin.getSettings().doStackPermissionLimits());
|
||||
return plugin.getManager().homes().getFreeHomes(user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -602,7 +602,7 @@ public abstract class BaseHuskHomesAPI {
|
||||
* @since 3.0
|
||||
*/
|
||||
public final int getMaxPublicHomeSlots(@NotNull OnlineUser user) {
|
||||
return user.getMaxPublicHomes(plugin.getSettings().getMaxPublicHomes(), plugin.getSettings().doStackPermissionLimits());
|
||||
return plugin.getManager().homes().getMaxPublicHomes(user);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user