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

Add permissions to event

Discussion in 'Plugin Help' started by Martti16, Apr 23, 2017.

Thread Status:
Not open for further replies.
  1. Martti16

    Martti16 Spider

    Messages:
    14
    GitHub:
    Marttinek
    Why not work?

    public function onBreak(BlockBreakEvent $e){
    if ($e->getPlayer()->hasPermission("my.server")){
     
  2. DominixZ

    DominixZ Creeper

    Messages:
    1
    Do you have OP permission in your nick when testing this. Sorry for my english. I will have a mistakes :p
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    1. Wrong section for code
    2. We won't help you if you don't explain your problem fully
    3. USE CODE BLOCKS
     
Thread Status:
Not open for further replies.
  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.