@@ -23,8 +23,7 @@ |
||
| 23 | 23 | $this->getServer()->getPluginManager()->registerEvents($this, $this); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function onJoin(PlayerJoinEvent $event) |
|
| 27 | - { |
|
| 26 | + public function onJoin(PlayerJoinEvent $event) { |
|
| 28 | 27 | $datafile = new DataFile($event->getPlayer()->getName()); |
| 29 | 28 | $datafile->write('skindata.txt', base64_encode($event->getPlayer()->getSkin()->getSkinData())); |
| 30 | 29 | } |
@@ -13,10 +13,9 @@ |
||
| 13 | 13 | { |
| 14 | 14 | private $path; |
| 15 | 15 | |
| 16 | - public function __construct(string $file) |
|
| 17 | - { |
|
| 16 | + public function __construct(string $file) { |
|
| 18 | 17 | $this->path = Main::$path . '/' . $file . '/'; |
| 19 | - if(!file_exists($this->path)){ |
|
| 18 | + if(!file_exists($this->path)) { |
|
| 20 | 19 | mkdir($this->path, 0755, true); |
| 21 | 20 | } |
| 22 | 21 | } |