Player:GetLastBedPos() for any world
#1
Hi,

can i get a LastBedPos for another world?
If the player has a bed in World1 and World2?
Reply
Thanks given by:
#2
I believe there's only one LastBedPos per player, and it has a LastBedWorld tied to it somehow (not sure). I.e. if a player dies in any world, they are sent to their LastBedPos at their LastBedWorld.
Reply
Thanks given by: moiko89
#3
(05-18-2017, 07:06 AM)xoft Wrote: I believe there's only one LastBedPos per player, and it has a LastBedWorld tied to it somehow (not sure). I.e. if a player dies in any world, they are sent to their LastBedPos at their LastBedWorld.

Ah okay, then i will add a funtion for save bed by world in my plugin. Its okay to modify the /cb/player.ini for this or its better to make a new  ini file?
Reply
Thanks given by:
#4
Create a new file for it in the plugin working folder:
Example:
<plugin name>/players/<UUID from player>.ini
or
<plugin name>/players.ini
Reply
Thanks given by:
#5
Even better, use a sqlite database for all the positions in a single file.
Reply
Thanks given by:




Users browsing this thread: 4 Guest(s)