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 'Development' started by Martti16, Apr 23, 2017.

  1. Martti16

    Martti16 Spider

    Messages:
    14
    GitHub:
    Marttinek
    Why not work?

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

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    why what not work?
    "Don'ts: say "it doesn't work", explain yourself and provide as much info as possible!"
     
    jasonwynn10 likes this.
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    HimbeersaftLP and [deleted] like this.
  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.