4 Commits

Author SHA1 Message Date
farcasclaudiu 7727a91d69 Upgrade version to 1.04 due submitted fix/release 2015-01-13 22:10:22 +02:00
farcasclaudiu 1d31b9e11d Merge pull request #1 from shoghicp/patch-1
Fixes "Too many open files"
2015-01-13 22:01:52 +02:00
Shoghi Cervantes 2a34b3f605 Fixes "Too many open files"
This fixes issues with not closing resources given by PocketMine, causing a crash at a later stage.
Users usually blame PocketMine for this, but it's entirely a plugin's fault.

This code was found via GitHub search, please review your code for usage of:

* `Plugin->getResource()` without `fclose()` calls later
* Not needed `Plugin->getResource()` calls
* `fopen()` calls without `fclose()`
* `popen()` calls without `pclose()`
2015-01-13 20:15:33 +01:00
farcasclaudiu d01098db1a version string 2015-01-11 09:35:51 +02:00
2 changed files with 5 additions and 8 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
name: QRcraft
version: 1.0.2
version: 1.0.4
api: 1.0.0
main: clodyx\qrcraft\QRcraftPlugIn
author: Clodyx
@@ -18,10 +18,10 @@ commands:
description: "List QR panels IDs"
permission: clodyx.plugin.qrcraft
qrd:
description: "delete QR panel by ID"
description: "Delete QR panel by ID"
permission: clodyx.plugin.qrcraft
qrp:
description: "teleport nearby QR panel by ID"
description: "Teleport nearby QR panel by ID"
permission: clodyx.plugin.qrcraft
permissions:
clodyx.plugin.qrcraft:
+1 -4
View File
@@ -45,10 +45,7 @@ class QRcraftPlugIn extends PluginBase implements CommandExecutor
public function loadConfiguration()
{
if (!file_exists($this->getDataFolder() . "config.yml")) {
@mkdir($this->getDataFolder());
file_put_contents($this->getDataFolder() . "config.yml", $this->getResource("config.yml"));
}
$this->saveDefaultConfig();
}
public function onDisable()