Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unexpected $sender

Comments in 'Plugin Development' started by Jaydenb1321, Jul 9, 2015.

Thread Status:
Not open for further replies.
  1. Jaydenb1321
    Offline

    Jaydenb1321 New Member

    Joined:
    Aug 16, 2014
    Posts:
    45
    Minecraft User:
    ItzBulkDev
    I'm having some trouble creating a plugin. I have this line of code however it tells the console

    Code:
    Parse error: syntax error, unexpected '$sender' (T_VARIABLE) in phar://C:/Users/Sony user/Desktop/PocketMine-MP/plugins/******/src/*****/Main.php on line 45
    
    This is the line of code that is causing the server to crash:
    I'm new on dispatching commands so can anyone tell me what I did wrong
    PHP:
    $this->getServer()->dispatchCommand($sender"transfer" $sender->getName$ip $port);
  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
  3. Jaydenb1321
    Offline

    Jaydenb1321 New Member

    Joined:
    Aug 16, 2014
    Posts:
    45
    Minecraft User:
    ItzBulkDev
Thread Status:
Not open for further replies.

Share This Page

Advertisement