Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Soolz, Jul 9, 2018.
Everything is in the title
You can't, its up to the client
You 'could' make the player invisible, create a fake player for the rest of a server. and make an invisible armorstand that the player rides with a different y value.
How can I do this?
To make the player invisible, use the hidePlayer method. Creating a fake player will require NMS - go look it up on google. An invisible armourstand is easy, just create an armourstand entity, use #setVisible(false) then add the player as a passenger.
Afaik there is a fakeplayer class maintained somewhere.
If i remember right you can set the player as a viewer too, maybe use that?