Cuberite Forum
On join tp to spawn - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: On join tp to spawn (/thread-3300.html)



On join tp to spawn - Miska347 - 07-05-2020

One more plugin request. That is, could someone make a plugin / write code that would teleport a player to spawn when joining to server.


RE: On join tp to spawn - NiLSPACE - 07-05-2020

Here you goThis one is outdated. See an updated version below: [attachment=795]

When the player isn't in the default world I move them there first. I also added a way to exclude people from being teleported. This is done by giving people the 'tptospawnonjoin.exclude' permission. If you want everyone, including people who have '*' permission to teleport as well you can add the previous permission to the restrictions instead.


RE: On join tp to spawn - Miska347 - 07-05-2020

Thank you!


RE: On join tp to spawn - Miska347 - 07-05-2020

(07-05-2020, 07:24 AM)NiLSPACE Wrote: Here you go:

When the player isn't in the default world I move them there first. I also added a way to exclude people from being teleported. This is done by giving people the 'tptospawnonjoin.exclude' permission. If you want everyone, including people who have '*' permission to teleport as well you can add the previous permission to the restrictions instead.
Is it possible to get a player to look in the same direction every time they come to the spawn?


RE: On join tp to spawn - NiLSPACE - 07-05-2020

Here you go: [attachment=796]

There is now a configuration file inside the plugin's folder. In there you can configurate the yaw (direction) and the pitch (up and down) when the player spawns. You can find the yaw and pitch in your f3 screen: [attachment=797]