BlockProtection - automatic per-block protection - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Plugins (https://forum.cuberite.org/forum-1.html) +--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html) +--- Thread: BlockProtection - automatic per-block protection (/thread-1625.html) |
BlockProtection - automatic per-block protection - xoft - 10-19-2014 Auto-protects each block that each player places or breaks. Each block that a player builds is automatically added to their list of protected blocks, thus prohibiting other players from breaking the block. Players can additionally define friends who are able to break their blocks. The server admins and moderators (when given the proper permissions) can always break all blocks. Note that friendship is a one-way relationship - declaring someone a friend only means they can break your blocks, it doesn't allow you to break your blocks (because if it did, friending an admin would be a hackdoor). Commands General
Permissions
RE: BlockProtection - automatic per-block protection - ambushed01 - 10-19-2014 /privateblocks rmfriend - Adds a friend to the list of people who can interact with your blocks Change into /privateblocks rmfriend - Remove a friend to the list of people who can interact with your blocks possible to make a "Wand" Like worldedit to see the person who placed a block? So admins can identify block owners. If people break blocks, does it prohibiting other people to build there? RE: BlockProtection - automatic per-block protection - xoft - 10-19-2014 I fixed the copypasta in the description files, but cannot edit the forum post, I'm getting this error: Code: The requested Web page has been blocked by APP Enforcement. A wand for admins is a planned feature. Breaking a block doesn't protect the empty space left behind. Should we change that, protect the air? If it did protect the air, you'd soon have forests of protected empty spaces left by people chopping down trees; this is imho something admins don't want; but what do I know, I'm just a programmer RE: BlockProtection - automatic per-block protection - ambushed01 - 10-20-2014 You are right about the Air thing, its not handy and you shouldn't be wanting that. For the wand it would be perfect to add since a lot grievers would be caught that way RE: BlockProtection - automatic per-block protection - ambushed01 - 10-23-2014 Getting error: [19:57:10] PrivateBlocks: The config file 'PrivateBlocks.cfg' doesn't exist. Defaults will be used. I renamed Example.cfg => PrivateBlocks.cfg Still not working RE: BlockProtection - automatic per-block protection - xoft - 10-23-2014 The config file the plugin is looking for should be at the MCS executable ($/MCServer/PrivateBlocks.cfg if you build from source). The plugin also takes the Example.cfg file (do not rename it) in the plugin folder and copies it as PrivateBlocks.example.cfg in the executable folder. Rename this example.cfg file instead. RE: BlockProtection - automatic per-block protection - ambushed01 - 10-23-2014 Thanks worked perfect RE: BlockProtection - automatic per-block protection - donvdp - 11-29-2014 Is anyone using this plugin on a large server (150+ players)?? if so. does this plugin cause lagg over time ?? Im wondering this because: if a player breakes a block then the server has to run through a database of all the protected blocks.... im betting if the database is large eneugh and the amount of players on the server is high eneugh this will cause preformance issues ?? RE: BlockProtection - automatic per-block protection - bearbin - 11-29-2014 There will be some performance impact, but it shouldn't make that much of a difference. RE: BlockProtection - automatic per-block protection - xoft - 11-30-2014 (11-29-2014, 09:51 PM)donvdp Wrote: if a player breakes a block then the server has to run through a database of all the protected blocks. The plugin is smarter than that. It queries the database only once in a while and stores the results for a 16x16x16 block area around the player. If the player doesn't move outside this area, there's no need to query the database - all the blocks are already in the memory. And when the user moves out of this area, the data is queried again for the new area, using a single DB query. I haven't stress-tested this plugin, but I believe the performance impact to be pretty minimal. I'd be interested in a real-world test, though; unfortunately I don't have a 150-player server. |