onebone / EconomyS

The economy plugin for PocketMine-MP
GNU General Public License v3.0
144 stars 188 forks source link

Server crashing due to EconomyTax #107

Closed Damcp04 closed 9 years ago

Damcp04 commented 9 years ago

Hello! I have a small problem. My server is crashing due EconomyTax, is there anyway to disable it? Here's the crash report:

PocketMine-Soft Crash Dump Thu Jun 25 23:38:36 UTC 2015

Error: mkdir(): File exists File: /EconomyTax_v2.0.2.phar/src/onebone/economytax/EconomyTax Line: 24 Type: E_WARNING

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: EconomyTax v2.0.2

Code: [15] / [16] private $api; [17] [18] / [19] \ @var Config [20] _/ [21] private $config; [22] [23] public function onEnable(){ [24] @mkdir($this->getDataFolder()); [25] $this->api = EconomyAPI::getInstance(); [26] $this->config = new Config($this->getDataFolder()."tax.properties", Config::PROPERTIES, array( [27] "time-for-tax" => 10, [28] "tax-as-percentage" => "", [29] "tax-as-money" => 100 [30] )); [31] $this->getServer()->getScheduler()->scheduleRepeatingTask(new CallbackTask(array($this, "onSchedule")), $this->config->get("time-for-tax")_1200); [32] } [33] [34] public function onSchedule(){

Damcp04 commented 9 years ago

A bug?

ghost commented 9 years ago

@Damcp04 Already fixed in the latest commit