Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by chunza2542, Apr 15, 2017.
Can you explain. What is CraftPlayer & DataWatcher with some example.
CraftPlayer is the implementation of the 'Player' interface in the Bukkit API.
I'm not sure about DataWatcher, show where you saw it?
@ItsMas_ I saw DataWatcher in corpse plugin.
Can you give me an example When I can use CraftPlayer.
I don't know that DataWatcher is but the CraftPlayer is the Craftbukkit* implementation of Player.
* Craftbukkit is the actual runtime and Bukkit and/or Spigot is an API
In simple terms, DataWatcher keeps track of entity metadata(visibility, gravity) etc. The wiki should have a list of tracked data.