[plugin]BlockProtection

    2019-04-16: A new hotfix (0.9.5.7) is now available!

    • [plugin]BlockProtection

      Ok guys i have made a block protection script

      What it does

      This plugin stops griefing of blocks over your whole server but it does have some limitations ATM

      All admins can still remove all blocks but when an admin removes blocks that a griefer has put down, the user name who placed the block is shown, this makes it simple to ban that user as you know who placed the unwanted block

      for the blocks only the user who placed them or an admin is able to remove them this can make it hard ATM for group building but i intend to change that
      also the API does not support this script for getting every block info when laying in lines, this means if lines are laid not all blocks are protected this should change on the next API update
      as i have talked to @red51 about this


      ATM there is no commands

      i have only done limited testing so if you find any bugs please do let me know.

      Also ideas are always welcome
      Files


      :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

      If at first your code does not work call it version 0.1 with the odd bug :S

      The post was edited 3 times, last by yahgiggle ().

    • Minotorious wrote:

      nice, will download to do some testing :)

      btw will this be in theory incorporated in an AreaProtection plugin in the end?
      this is experimental also its over the hole server not just selected areas BTW i have found a bug thats not making it work on servers as expected im working on it right now


      :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

      If at first your code does not work call it version 0.1 with the odd bug :S
    • How does it work ? i get a message every block i place, but i can remove , destroy blocks from others... with a message in the chat but it is possible.

      I thought this plug in prevents such destroying...

      i installed it on the server... is it recommended to install it on the client too ?
    • Crodak wrote:

      How does it work ? i get a message every block i place, but i can remove , destroy blocks from others... with a message in the chat but it is possible.

      I thought this plug in prevents such destroying...
      @yahgiggle would have to confirm but I believe this plugin only protects blocks placed after its installation and also blocks that have been placed individually so not with left click drag and right click place block line. (this is a fault at the API and as mentioned in the first post will be fixed by red51 in the next update)

      Crodak wrote:

      i installed it on the server... is it recommended to install it on the client too ?
      It doesn't matter as the server doesn't care if the client has ant plugin installed, in RW only the server needs the plugins and every player can join, it is not like other games where both the client and the server have to have the plugins/mods installed.
      Admin on Artisan's Realm
      Rising World Projects:
      Blueprint Texture Editor
      MailingSystem
      ServerTools
      Portals
    • yes that is correct the file system for all plugins should look like this:
      Plugins
      |---PluginName
      |---|---PluginName.jar

      hmm weird I think @yahgiggle would have to try to help you out from here on, I checked his code and everything seems correct (though a bit more complex than it has to be :P ) in order to protect blocks no idea why it is not doing it for your server. Tbh I haven't tried it with non-admin players in MP yet myself.
      Admin on Artisan's Realm
      Rising World Projects:
      Blueprint Texture Editor
      MailingSystem
      ServerTools
      Portals
    • Minotorious wrote:

      yes that is correct the file system for all plugins should look like this:
      Plugins
      |---PluginName
      |---|---PluginName.jar

      hmm weird I think @yahgiggle would have to try to help you out from here on, I checked his code and everything seems correct (though a bit more complex than it has to be :P ) in order to protect blocks no idea why it is not doing it for your server. Tbh I haven't tried it with non-admin players in MP yet myself.
      The blocks are only protected from other players if you place a block, You own it oO, so of cause you can also remove it, the only other players that can remove it are Admin's, if you lay lines of blocks only the first block is protected, that's to do with the api and is going to be fixed by Red51 Note if you lay the block in a protected area/zone, then that plugin may let any user smash the block who is also added to that area, I have not tested this yet, but that could be whats going on.


      :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

      If at first your code does not work call it version 0.1 with the odd bug :S
    • you need a way to find all the blocks a greafer sets and a way for admins to be able to remove them before they are banned or even after being banned if possible.

      Is there planed a version of this for PNB?

      also there needs to be a way admin can protect blocks that already exist. I have many bridges I wish to protect and roadways. Mabey even set owner of unowned blocks. This would allow for conversion of old worlds. There is blueprinting things to replace blocks but that is a lot of work.

      The post was edited 1 time, last by sharkbitefischer ().

    • sharkbitefischer wrote:

      you need a way to find all the blocks a greafer sets and a way for admins to be able to remove them before they are banned or even after being banned if possible.

      Is there planed a version of this for PNB?

      also there needs to be a way admin can protect blocks that already exist. I have many bridges I wish to protect and roadways. Mabey even set owner of unowned blocks. This would allow for conversion of old worlds. There is blueprinting things to replace blocks but that is a lot of work
      ive realy been looking into the api lately to see what can be down, ive not seen a way to protect all blocks yet but if i see something i will indeed code it.


      :thumbsup: Rising Citys @ ip 74.118.138.151:4265 ServerName (Yahgiggles Rising Citys) :thumbsup:

      If at first your code does not work call it version 0.1 with the odd bug :S