Class FakePlayer

java.lang.Object
com.shanebeestudios.nms.api.world.entity.FakePlayer

public class FakePlayer extends Object
Represents a fake ServerPlayer

Can create in PlayerApi.spawnFakePlayer(String, Location)

  • Method Details

    • teleport

      public void teleport(@NotNull @NotNull Location location)
      Teleport this player to another location

      Currently does not support changing worlds/levels.

      Parameters:
      location - Location to teleport to
    • update

      public void update(@NotNull @NotNull Player player)
      Update for a single Player
      Parameters:
      player - Player to update for
    • update

      public void update()
      Update for all players online
    • removeFromPlayerList

      public void removeFromPlayerList()
      Remove the player from the player list
    • addToPlayerList

      public void addToPlayerList()
      Add the player to the player list
    • remove

      public void remove()
      Remove this fake player
    • toString

      public String toString()
      Overrides:
      toString in class Object