05-18-2017, 04:21 AM 
		
	
	
		Hi,
can i get a LastBedPos for another world?
If the player has a bed in World1 and World2?
	
	
	
	
can i get a LastBedPos for another world?
If the player has a bed in World1 and World2?
| 
					Player:GetLastBedPos() for any world
				 | 
| 
		
		
		05-18-2017, 04:21 AM 
		
	 
		Hi, can i get a LastBedPos for another world? If the player has a bed in World1 and World2? 
		
		
		05-18-2017, 07:06 AM 
		
	 
		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.
	 Thanks given by: moiko89
		 
		
		
		05-18-2017, 07:17 PM 
		
	 (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? 
		
		
		05-18-2017, 07:32 PM 
(This post was last modified: 05-18-2017, 07:33 PM by Seadragon91.)
		
	 
		Create a new file for it in the plugin working folder: Example: <plugin name>/players/<UUID from player>.ini or <plugin name>/players.ini 
		
		
		05-18-2017, 08:10 PM 
		
	 
		Even better, use a sqlite database for all the positions in a single file.
	 | 
| 
					« Next Oldest | Next Newest »
				 |