Package com.plotsquared.bukkit.player
Class BukkitOfflinePlayer
java.lang.Object
com.plotsquared.bukkit.player.BukkitOfflinePlayer
- All Implemented Interfaces:
PermissionHolder,OfflinePlotPlayer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBukkitOfflinePlayer(@NonNull OfflinePlayer player, @NonNull PermissionHandler permissionHandler) Please do not use this method. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.plotsquared.core.permissions.PermissionHolder
hasKeyedPermission, hasPermission, hasPermissionRange
-
Field Details
-
player
-
-
Constructor Details
-
BukkitOfflinePlayer
public BukkitOfflinePlayer(@NonNull OfflinePlayer player, @NonNull PermissionHandler permissionHandler) Please do not use this method. Instead use BukkitUtil.getPlayer(Player), as it caches player objects.- Parameters:
player- Bukkit OfflinePlayer player to convertpermissionHandler- Permission Profile to be used
-
-
Method Details
-
getUUID
- Specified by:
getUUIDin interfaceOfflinePlotPlayer
-
getLastPlayed
public @org.checkerframework.checker.index.qual.NonNegative long getLastPlayed()- Specified by:
getLastPlayedin interfaceOfflinePlotPlayer
-
getName
- Specified by:
getNamein interfaceOfflinePlotPlayer
-
hasPermission
- Specified by:
hasPermissionin interfacePermissionHolder
-
hasKeyedPermission
public boolean hasKeyedPermission(@Nullable String world, @NonNull String stub, @NonNull String key) - Specified by:
hasKeyedPermissionin interfacePermissionHolder
-