1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

"Anti" Diamond plugin

Discussion in 'Requests' started by Groin, Apr 28, 2017.

  1. Groin

    Groin Baby Zombie

    Messages:
    159
    Hey guys, I have a problem for a long time. I want to "anti" diamonds in my server.
    1: When player typed /diamond command, their diamonds and diamond blocks was cleared
    or
    2: It will automatically delete the diamonds and diamonds on their inventory

    I also think how to anti the player get the diamond in any way!

    If one of the ways can not do that, I would think about the third way

    Thanks for reading :)

     
  2. Jonas

    Jonas Baby Zombie

    Messages:
    192
    For 1: you can use PlayerInteractEvent
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Which section is this post supposed to be in?? Development or requests? Plugin help is for already existing plugins
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    maybe it's suppose to be in request, regardless it would be pointless to assume until you are clear of what OP want
     
    jasonwynn10 likes this.
  5. Groin

    Groin Baby Zombie

    Messages:
    159
    Not sure I can do it, can you help me, plesae?
     
  6. Groin

    Groin Baby Zombie

    Messages:
    159
    :facepalm:
     
  7. padrone

    padrone Witch

    Messages:
    69
    GitHub:
    padreon
  8. Groin

    Groin Baby Zombie

    Messages:
    159
  9. Jonas

    Jonas Baby Zombie

    Messages:
    192
    Here is a plugin thats block break diamond ores and nobody can held diamonds and diamond blocks
     

    Attached Files:

  10. Groin

    Groin Baby Zombie

    Messages:
    159
    Thanks bro !
     
  11. Groin

    Groin Baby Zombie

    Messages:
    159
    Please fix!
    Error: syntax error, unexpected '.', expecting ',' or ';'
    File: /Anti Diamonds/src/AntiDias/Main
    Line: 12
    Type: notice
     
  12. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Please read the error :facepalm:
     
    Muqsit likes this.
  13. Groin

    Groin Baby Zombie

    Messages:
    159
    It's error
     
  14. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    this is plugin request section :smh: dont expect OP to know anything of PHP, there's a reason it's here not on development section
     
    jasonwynn10 likes this.
  15. Groin

    Groin Baby Zombie

    Messages:
    159
    :confused:
     
  16. Jonas

    Jonas Baby Zombie

    Messages:
    192
    Fixed
     

    Attached Files:

  17. Jonas

    Jonas Baby Zombie

    Messages:
    192
    Works it?
     
  18. Groin

    Groin Baby Zombie

    Messages:
    159
    Yes. Howerver, it only remove when players placed it.
     
  19. Jonas

    Jonas Baby Zombie

    Messages:
    192
    No its remove that when they interact with the diamonds(Right Click, Left Click)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.