Cuberite Forum
Change Player spawn position - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Change Player spawn position (/thread-2483.html)



Change Player spawn position - PureTryOut - 07-26-2016

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?


RE: Change Player spawn position - NiLSPACE - 07-26-2016

Perhaps you can use cPlayer:SetBedPos()?


RE: Change Player spawn position - PureTryOut - 07-26-2016

Thanks, that does the job as well! I guess I'm just thinking too hard about it Wink