Filled No block breaking

Discussion in 'Archived: Plugin Requests' started by CaptainWalrus, Jan 10, 2014.

  1. Offline

    CaptainWalrus

    i'm looking for a plugin that if the player doesn't have
    blockbreak.allow permission they cannot break blocks, and if they do they are sent a configurable message.
    Yes, I know worldguard does this, but I really want the message... Thanks!
     
  2. Offline

    msnijder30

    CaptainWalrus
    Here you go :)

    permissions:
    blockbreak.allow
    blockplace.allow

    EDIT:
    This will only disable block breaking if they don't have blockbreak.allow, they still can place blocks.

    just in case here is the blockplace and blockbreak:
    <Edit by Moderator: Redacted mediafire url>

    block break only:
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 4, 2016
  3. Offline

    CaptainWalrus

    msnijder30
    Awesome!!
    Thanks!

    msnijder30
    Can you make it so the messages can be colored?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  4. Offline

    msnijder30

    CaptainWalrus

    I will try to make that aswell :)

    Hello I did it! :p

    Only the .yml file can't handle more than one comment so here it is:

    #Explanation:
    #put one or more valid color(s) in your text. for example:
    #darkblue& You aren’t allowed darkred& to place blocks.

    #Valid colors:
    #black&
    #darkblue&
    #darkgreen&
    #arkaqua&
    #darkred&
    #darkpurple&
    #gold&
    #gray&
    #darkgray&
    #blue&
    #green&
    #aqua&
    #red&
    #pink&
    #yellow&
    #white&

    Tell me that's what you're looking for
    <Edit by Moderator: Redacted mediafire url>

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 4, 2016
  5. Offline

    DrJava

    If you're looking for a more eye candy approach, I can create it for you.
     
  6. Offline

    CaptainWalrus

    That would be nice.
     
  7. Offline

    msnijder30

    DrJava

    Do you want to use the code I have?
     
  8. Offline

    DrJava

    I'll get to work on it in the morning.

    No thanks. It's only about 3 lines of code lol.

    Actually, it's 2.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  9. Offline

    msnijder30

  10. Offline

    CaptainWalrus

    I'll use whatever one comes out better.
    I don't care about how much code is there, honestly.
     
  11. Offline

    DrJava

    I know, I was just saying that it's only two lines of code so I do not require his.
     
  12. Offline

    CaptainWalrus

    Ah, I see.
    Thanks again, though!

    msnijder30
    I couldn't get your colors to work :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
    DrJava likes this.
  13. Offline

    msnijder30

    CaptainWalrus

    oh really?

    did you put a space in between the & and the text?
    you just put the color codes in the message

    this will display all text that you get when you break a block in yellow:

    BlockBreakMessage: yellow& You aren’t allowed to break blocks.
     
  14. Offline

    CaptainWalrus

  15. Offline

    DrJava

    Sorry, I forgot about it. I'll do it tomorrow.
     

Share This Page