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

[REMOVED] PVPWorld

Comments in 'Plugin Releases' started by Dinokiller, May 11, 2014.

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

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    The new API soon?
  2. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    As I said to @RekkuzaRage, the plugin will be released for 1.4 very soon.
  3. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    Sorry to make you repeat /:

    thank you for your plugin is perfect
    Meline1 likes this.
  4. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
  5. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    251
    Minecraft User:
    RekkuzaRage
    I ran into this issue when I was running my 1.4 server, it crashed my server.
    Code:
    10:11:49[NOTICE] A E_NOTICE error happened: "Undefined property: pocketmine\Player::$getLevel" in "phar:///root/plugins/PVPWorld_v1.1.phar/src/pvpworld/Main.php" at line 66
    
    Fatal error: Call to a member function getName() on a non-object in phar:///root/plugins/PVPWorld_v1.1.phar/src/pvpworld/Main.php on line 66
    
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  7. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
  8. tnpxxsheepdog
    Offline

    tnpxxsheepdog Notable Member

    Joined:
    Dec 31, 2013
    Posts:
    350
    Minecraft User:
    TNPXXSHEEPDOG
    Make sure to put a [NEW API] tag on it!
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The default value is true. It's not necessary.
  10. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    oh okay , i well delete my post then
  11. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    a small question, if the world is in the pvp-worlds list does that mean it's pvp or not pvp ? i am so confused about that
  12. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    If a world is in the list PVP is disabled.
  13. SaionDeLegend
    Offline

    SaionDeLegend New Member

    Joined:
    Jul 16, 2014
    Posts:
    9
    Minecraft User:
    Savion_Legend12
    It crashed my server :/
  14. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Show me the log in pastebin, I can't do anything otherwise.
  15. Jon
    Offline

    Jon Active Member Plugin Developer

    Joined:
    Sep 1, 2013
    Posts:
    201
    Plugins:
    3
    Minecraft User:
    Heromine14
    Crash:
    Code:
    PocketMine-MP Crash Dump Sun Aug 17 11:55:18 UTC 2014
    
    Error: Call to a member function getName() on a non-object
    File: /PVPWorld_v1.1.phar/src/pvpworld/Main
    Line: 32
    Type: E_ERROR
    
    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: PVPWorld v1.1
    
    Code:
    [23]         $this->getServer()->getPluginManager()->registerEvents($this, $this);
    [24]         $this->getServer()->setConfigBool("pvp", true);
    [25]     }
    [26]
    [27]     public function onCommand(CommandSender $sender, Command $command, $label, array $args) {
    [28]         if(strtolower($command->getName()) == "pvpworld") {
    [29]             if($sender instanceof Player) {
    [30]                 $world = $sender->getLevel()->getName();
    [31]             }else{
    [32]                 $world = $this->getServer()->getDefaultLevel->getName();
    [33]             }
    [34]             if(isset($args[1])) {
    [35]                 if($this->getServer()->isLevelLoaded($args[1])) {
    [36]                     $world = $args[1];
    [37]                 }else{
    [38]                     $sender->sendMessage("That world doesn't exist.\n");
    [39]                 }
    [40]             }
    [41]             $mode = in_array($world, $config->get("pvp-worlds"));
    [42]             if(isset($args[0])) {
    
    Backtrace:
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    He forgot a pair of parentheses on line 32 lol
  17. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    I've submitted a bug fix update and I'm waiting for it be approved. I'm sorry I didn't spot this earlier. :oops:
    Jon likes this.
  18. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    the message that's nice!
    this plugin is essential x)
  19. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
  20. Jon
    Offline

    Jon Active Member Plugin Developer

    Joined:
    Sep 1, 2013
    Posts:
    201
    Plugins:
    3
    Minecraft User:
    Heromine14
    Crash:
    V1.1.1
    Code:
    PocketMine-MP Crash Dump Sun Aug 17 18:47:07 UTC 2014
    
    Error: Call to a member function get() on a non-object
    File: /PVPWorld_v1.1.1.phar/src/pvpworld/Main
    Line: 41
    Type: E_ERROR
    
    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: PVPWorld v1.1.1
    
    Code:
    [32]                 $world = $this->getServer()->getDefaultLevel()->getName();
    [33]             }
    [34]             if(isset($args[1])) {
    [35]                 if($this->getServer()->isLevelLoaded($args[1])) {
    [36]                     $world = $args[1];
    [37]                 }else{
    [38]                     $sender->sendMessage("That world doesn't exist.\n");
    [39]                 }
    [40]             }
    [41]             $mode = in_array($world, $config->get("pvp-worlds"));
    [42]             if(isset($args[0])) {
    [43]                 $mode = $args[0] == "on";
    [44]             }
    [45]             if($mode) {
    [46]                 $sender->sendMessage("PVP is now enabled in this world.");
    [47]                 if(($key = array_search($world, $this->config->get("pvp-worlds"))) !== false) {
    [48]                     $arr = $this->config->get("pvp-worlds");
    [49]                     unset($arr[$key]);
    [50]                     $this->config->set("pvp-worlds", $arr);
    [51]                 }
    
    Backtrace:
    
    PocketMine-MP version: Alpha_1.4dev #640 [Protocol 18; API 1.2.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Windows NT IMPERATO-HP 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) AMD64
    PHP Version: 5.5.10
    Zend version: 2.5.0
    OS : WINNT, win
Thread Status:
Not open for further replies.

Share This Page

Advertisement