Class BukkitOfflinePlayer

java.lang.Object
com.plotsquared.bukkit.player.BukkitOfflinePlayer
All Implemented Interfaces:
com.plotsquared.core.permissions.PermissionHolder, com.plotsquared.core.player.OfflinePlotPlayer

public class BukkitOfflinePlayer extends Object implements com.plotsquared.core.player.OfflinePlotPlayer
  • Field Details

  • Constructor Details

    • BukkitOfflinePlayer

      public BukkitOfflinePlayer(@NonNull OfflinePlayer player, @NonNull com.plotsquared.core.permissions.PermissionHandler permissionHandler)
      Please do not use this method. Instead use BukkitUtil.getPlayer(Player), as it caches player objects.
      Parameters:
      player - Bukkit OfflinePlayer player to convert
      permissionHandler - Permission Profile to be used
  • Method Details

    • getUUID

      public @NonNull UUID getUUID()
      Specified by:
      getUUID in interface com.plotsquared.core.player.OfflinePlotPlayer
    • getLastPlayed

      public @org.checkerframework.checker.index.qual.NonNegative long getLastPlayed()
      Specified by:
      getLastPlayed in interface com.plotsquared.core.player.OfflinePlotPlayer
    • getName

      public String getName()
      Specified by:
      getName in interface com.plotsquared.core.player.OfflinePlotPlayer
    • hasPermission

      public boolean hasPermission(@Nullable String world, @NonNull String permission)
      Specified by:
      hasPermission in interface com.plotsquared.core.permissions.PermissionHolder
    • hasKeyedPermission

      public boolean hasKeyedPermission(@Nullable String world, @NonNull String stub, @NonNull String key)
      Specified by:
      hasKeyedPermission in interface com.plotsquared.core.permissions.PermissionHolder