File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bukkit/src/main/java/io/wdsj/asw/bukkit/permission/cache Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11package io .wdsj .asw .bukkit .permission .cache ;
22
3- import com .github . benmanes . caffeine .cache .Cache ;
4- import com .github . benmanes . caffeine . cache .Caffeine ;
3+ import com .google . common .cache .Cache ;
4+ import com .google . common . cache .CacheBuilder ;
55import io .wdsj .asw .bukkit .permission .PermissionsEnum ;
66import org .bukkit .entity .HumanEntity ;
77import org .bukkit .event .EventHandler ;
@@ -40,7 +40,7 @@ public void disable() {
4040
4141 public static boolean hasPermission (PermissionsEnum permission , @ NotNull HumanEntity human ) {
4242 Cache <PermissionsEnum , Boolean > permCache = permissionCacheMap .computeIfAbsent (human .getUniqueId (),
43- k -> Caffeine .newBuilder ().expireAfterWrite (8 , TimeUnit .SECONDS ).build ());
43+ k -> CacheBuilder .newBuilder ().expireAfterWrite (8 , TimeUnit .SECONDS ).build ());
4444 Boolean hasPermission = permCache .getIfPresent (permission );
4545 if (hasPermission == null ) {
4646 hasPermission = human .hasPermission (permission .getPermission ());
You can’t perform that action at this time.
0 commit comments