Class FakePlayerCreator
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.hooks.FakePlayerCreator
Class used to create a fake-online player who is actually offline.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether a fake player can be created.Optional<org.bukkit.entity.Player> createPlayer(org.bukkit.OfflinePlayer player, org.bukkit.Location location) Creates a fake player.
-
Method Details
-
canCreatePlayers
public boolean canCreatePlayers()Checks whether a fake player can be created.- Returns:
trueif a fake player can be created,falseotherwise.
-
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.
-