Class FakePlayerCreator

java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.hooks.FakePlayerCreator

@Singleton public class FakePlayerCreator extends Object
Class used to create a fake-online player who is actually offline.
  • Method Details

    • canCreatePlayers

      public boolean canCreatePlayers()
      Checks whether a fake player can be created.
      Returns:
      true if a fake player can be created, false otherwise.
    • createPlayer

      public Optional<org.bukkit.entity.Player> createPlayer(org.bukkit.OfflinePlayer player, org.bukkit.Location location)
      Creates a fake player.
      Parameters:
      player - The offline player to create the fake-online player for.
      location - The location to create the fake player at.
      Returns:
      The fake player.