mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-07-14 09:44:20 +00:00
experimental permission caching
This commit is contained in:
parent
9a41a989de
commit
28dcfaa849
4 changed files with 36 additions and 6 deletions
|
@ -1022,8 +1022,8 @@ public class MainUtil {
|
|||
* @param p
|
||||
* @return
|
||||
*/
|
||||
public static int getAllowedPlots(final PlotPlayer p) {
|
||||
return Permissions.hasPermissionRange(p, "plots.plot", Settings.MAX_PLOTS);
|
||||
public static int getAllowedPlots(final PlotPlayer p, int current) {
|
||||
return Permissions.hasPermissionRange(p, "plots.plot", Settings.MAX_PLOTS, current);
|
||||
}
|
||||
|
||||
public static Plot getPlot(final Location loc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue