get every sign in the world
#7
I think you should instead store the coordinates of the entire garden, rather than just the sign, because otherwise you still have a problem on chunk boundaries - when a chunk is loaded that contains your sign, but not the entire garden, there's no way for the plugin to know what to protect at that point.

Oh, and by the way, you definitely don't want to load the entire DB into memory. Instead, you should keep, for each player, a table of gardens they are near to, and update that list whenever the player moves away. If you had everything in memory, it would slowly bring the server to its knees once there were many gardens.
Reply
Thanks given by:


Messages In This Thread
get every sign in the world - by danny9484 - 03-15-2016, 07:28 PM
RE: get every sign in the world - by xoft - 03-15-2016, 07:46 PM
RE: get every sign in the world - by danny9484 - 03-15-2016, 07:53 PM
RE: get every sign in the world - by danny9484 - 03-15-2016, 10:22 PM
RE: get every sign in the world - by danny9484 - 03-15-2016, 10:37 PM
RE: get every sign in the world - by danny9484 - 03-15-2016, 10:40 PM
RE: get every sign in the world - by xoft - 03-16-2016, 12:10 AM
RE: get every sign in the world - by danny9484 - 03-16-2016, 01:26 AM
RE: get every sign in the world - by xoft - 03-18-2016, 12:12 AM
RE: get every sign in the world - by danny9484 - 03-18-2016, 02:07 AM
RE: get every sign in the world - by NiLSPACE - 03-18-2016, 02:11 AM
RE: get every sign in the world - by danny9484 - 03-18-2016, 02:16 AM
RE: get every sign in the world - by danny9484 - 03-18-2016, 02:29 AM
RE: get every sign in the world - by xoft - 03-18-2016, 04:22 AM
RE: get every sign in the world - by danny9484 - 03-18-2016, 07:47 PM
RE: get every sign in the world - by xoft - 03-18-2016, 09:00 PM
RE: get every sign in the world - by danny9484 - 03-18-2016, 09:33 PM
RE: get every sign in the world - by xoft - 03-18-2016, 10:01 PM
RE: get every sign in the world - by danny9484 - 03-18-2016, 10:15 PM
RE: get every sign in the world - by danny9484 - 03-19-2016, 12:59 AM
RE: get every sign in the world - by xoft - 03-19-2016, 08:18 PM
RE: get every sign in the world - by danny9484 - 03-21-2016, 06:37 PM
RE: get every sign in the world - by xoft - 03-21-2016, 10:21 PM
RE: get every sign in the world - by danny9484 - 03-21-2016, 11:00 PM
RE: get every sign in the world - by danny9484 - 03-21-2016, 11:18 PM



Users browsing this thread: 1 Guest(s)