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

unexpected ")"

Discussion in 'Facepalm' started by da123rrell, Jul 20, 2017.

  1. da123rrell

    da123rrell Creeper

    Messages:
    3
    So I was editing a plugin and got this
    Code:
    ParseError: "syntax error, unexpected ')'" (EXCEPTION) in "/AdvertisingCmd-master/src/da123rrell/AdvertisingJail/AdvertisingCMD" at line 56
    so here is my code
    PHP:
     $this->getServer()->getPluginManager()->registerEvents($this$this);
            @
    mkdir($this->getDataFolder());
            
    $this->config = new Config ($this->getDataFolder() . "config.yml" Config::YAML, array(
            
    "command" =>
            )); 
    ##Line 57
            
    $this->saveResource("config.yml");
        }
    can anyone help me whats wrong
     
    Last edited: Jul 20, 2017
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you forgot to put something at line 56
     
  3. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    $this->config = new Config ($this->getDataFolder() . "config.yml" , CONFIG::YAML);
    $this->config->set("Command", ["commands]);
    $this->config->save();
     
  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.