ProtectionAreas (built-in)
#49
I have looked into the source code to implement flags. For mini games flags would be helpful and also for protections, like disable pvp, tnt, mob spawning, etc.

I see that the every player has then a list of Cuboids in a instance named cPlayerAreas. If I add a flag to a area and save it to the sqlite3 file. Then all player areas needs to be reloaded, to ensure that the cuboid has a flag.

The current code is not really suitable for that.
I have started implementing of flags and found a few other things that makes it much more complex, for example only applying the flag to players in a specific group.

Edit:
If there were only one area, that would be accessed if the player places/breaks a block, that would simplify things. But here I think the biggest problem would be to get the area from the coordinates.
Reply
Thanks given by:


Messages In This Thread
ProtectionAreas (built-in) - by xoft - 06-11-2013, 08:30 PM
RE: ProtectionAreas (built-in) - by xoft - 01-07-2014, 07:02 AM
RE: ProtectionAreas (built-in) - by Antonio - 01-29-2014, 08:09 AM
RE: ProtectionAreas (built-in) - by xoft - 01-29-2014, 08:58 AM
RE: ProtectionAreas (built-in) - by Antonio - 01-29-2014, 09:28 AM
RE: ProtectionAreas (built-in) - by xoft - 01-29-2014, 06:10 PM
RE: ProtectionAreas (built-in) - by Antonio - 01-29-2014, 09:21 PM
RE: ProtectionAreas (built-in) - by xoft - 01-29-2014, 11:39 PM
RE: ProtectionAreas (built-in) - by Antonio - 01-29-2014, 11:41 PM
RE: ProtectionAreas (built-in) - by Taugeshtu - 01-30-2014, 03:33 AM
RE: ProtectionAreas (built-in) - by xoft - 01-30-2014, 03:46 AM
RE: ProtectionAreas (built-in) - by Antonio - 02-04-2014, 12:22 AM
RE: ProtectionAreas (built-in) - by tonibm19 - 02-13-2014, 12:12 AM
RE: ProtectionAreas (built-in) - by xoft - 02-13-2014, 01:45 AM
RE: ProtectionAreas (built-in) - by tonibm19 - 02-13-2014, 01:59 AM
RE: ProtectionAreas (built-in) - by xoft - 02-13-2014, 04:51 AM
RE: ProtectionAreas (built-in) - by tonibm19 - 02-13-2014, 06:29 AM
RE: ProtectionAreas (built-in) - by xoft - 02-13-2014, 06:35 AM
RE: ProtectionAreas (built-in) - by tonibm19 - 02-13-2014, 06:37 AM
RE: ProtectionAreas (built-in) - by Boo - 12-18-2014, 07:32 PM
RE: ProtectionAreas (built-in) - by xoft - 12-18-2014, 08:39 PM
RE: ProtectionAreas (built-in) - by Howaner - 12-18-2014, 08:57 PM
RE: ProtectionAreas (built-in) - by Boo - 12-18-2014, 09:16 PM
RE: ProtectionAreas (built-in) - by Boo - 12-19-2014, 12:47 AM
RE: ProtectionAreas (built-in) - by xoft - 12-19-2014, 03:52 AM
RE: ProtectionAreas (built-in) - by Boo - 12-19-2014, 06:03 PM
RE: ProtectionAreas (built-in) - by Mathias - 12-25-2014, 06:26 AM
RE: ProtectionAreas (built-in) - by xoft - 12-25-2014, 09:23 AM
RE: ProtectionAreas (built-in) - by Boo - 01-21-2015, 05:06 PM
RE: ProtectionAreas (built-in) - by Boo - 01-22-2015, 08:11 PM
RE: ProtectionAreas (built-in) - by Boo - 02-11-2015, 09:44 PM
RE: ProtectionAreas (built-in) - by DarthCalvin - 04-06-2015, 11:56 PM
RE: ProtectionAreas (built-in) - by xoft - 04-07-2015, 12:56 AM
RE: ProtectionAreas (built-in) - by xoft - 04-07-2015, 03:31 AM
RE: ProtectionAreas (built-in) - by xoft - 04-07-2015, 04:02 AM
RE: ProtectionAreas (built-in) - by xoft - 04-07-2015, 07:54 AM
RE: ProtectionAreas (built-in) - by DarthCalvin - 04-10-2015, 09:56 PM
RE: ProtectionAreas (built-in) - by skywindz - 04-14-2015, 12:03 PM
RE: ProtectionAreas (built-in) - by xoft - 04-14-2015, 06:06 PM
RE: ProtectionAreas (built-in) - by skywindz - 04-14-2015, 08:11 PM
RE: ProtectionAreas (built-in) - by Jammet - 04-18-2015, 06:53 PM
RE: ProtectionAreas (built-in) - by DrMasik - 08-20-2015, 04:41 AM
RE: ProtectionAreas (built-in) - by Seadragon91 - 10-27-2015, 08:47 PM
RE: ProtectionAreas (built-in) - by opiums - 12-16-2016, 06:44 PM
RE: ProtectionAreas (built-in) - by NiLSPACE - 12-16-2016, 08:22 PM
RE: ProtectionAreas (built-in) - by xoft - 12-16-2016, 08:50 PM
RE: ProtectionAreas (built-in) - by opiums - 12-16-2016, 09:14 PM
RE: ProtectionAreas (built-in) - by opiums - 12-16-2016, 09:19 PM
RE: ProtectionAreas (built-in) - by xoft - 12-17-2016, 12:51 AM
RE: ProtectionAreas (built-in) - by opiums - 12-17-2016, 01:31 PM
RE: ProtectionAreas (built-in) - by opiums - 12-17-2016, 03:10 PM
RE: ProtectionAreas (built-in) - by xoft - 12-17-2016, 03:44 PM
RE: ProtectionAreas (built-in) - by yoboykai - 02-08-2017, 12:05 PM
RE: ProtectionAreas (built-in) - by xoft - 02-08-2017, 06:48 PM
RE: ProtectionAreas (built-in) - by yoboykai - 02-22-2017, 02:15 PM
RE: ProtectionAreas (built-in) - by psyFi - 08-07-2017, 01:29 PM
RE: ProtectionAreas (built-in) - by patrick_sozi - 09-01-2018, 03:11 PM



Users browsing this thread: 5 Guest(s)