Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
v3.5.1
Browse files Browse the repository at this point in the history
Versioning how @thedeibo wants it, Close #14
  • Loading branch information
Infernus101 authored Oct 21, 2017
1 parent b6d7030 commit b9016c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Infernus101/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function onEnable(){
}
$this->config = new Config($this->getDataFolder() . "config.yml", Config::YAML);
if(($this->config->get("pvp-record") == 1) or ($this->config->get("kdr") == 1) or ($this->config->get("mining-record") == 1)){
$flag = true;
$this->flag = true;
$this->players = [];
$this->players = (new Config($this->getDataFolder() . "/records.json", Config::JSON))->getAll();
$this->getServer()->getPluginManager()->registerEvents(new PlayerEvents($this), $this);
Expand All @@ -37,7 +37,7 @@ public function onEnable(){
}

public function onDisable(){
if($flag == true){
if($this->flag == true){
@unlink($this->getDataFolder() . "/records.json");
$d = new Config($this->getDataFolder() . "/records.json", Config::JSON);
foreach($this->players as $player => $stats){
Expand Down

0 comments on commit b9016c3

Please sign in to comment.