Cuberite Forum

Full Version: Change Player spawn position
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm currently trying to modify the player spawn position (note: not the world spawn position, but per player). I was trying to use HOOK_SPAWNING_ENTITY for this. On the top it says I can not disable the spawning of a player which I understand, but I did not realize this means I can't use that hook at all to modify the spawning.

Is there a reason for not calling the hook on player spawning other then preventing plugins from not allowing a player to spawn? Is there any other way I can move the player spawn by using a plugin?
Perhaps you can use cPlayer:SetBedPos()?
Thanks, that does the job as well! I guess I'm just thinking too hard about it Wink